public SQLiteColumn(string[] str)
 {
     _cid      = Convert.ToInt32(str[0]);
     _name     = str[1];
     _dataType = GetDateType(str[2]);
     _notNull  = str[3] == "1" ? true : false;
     _defValue = str[4];
     _pk       = str[5] == "1" ? true : false;
 }
Ejemplo n.º 2
0
 public SQLiteColumn(int cid, string name,
                     SQLiteDataTypes dataType, bool notNull,
                     string defValue, bool unique,
                     bool autoIncrement)
 {
     CID             = cid;
     Name            = name;
     DataType        = dataType;
     IsNotNull       = notNull;
     DefaultValue    = defValue;
     IsUnique        = unique;
     IsAutoIncrement = autoIncrement;
 }