Esempio n. 1
0
 protected override void LoadColumn(DataRow DataRow, ColumnInfo ColumnInfo)
 {
     ColumnInfo.DbType = DataRow[7] as string;
     ColumnInfo.Index = Convert.ToInt32(DataRow[4]);
     ColumnInfo.IsKey = DataRow[14] as string == "PRI";
     ColumnInfo.IsNullable = DataRow[6] as string == "YES";
 }
Esempio n. 2
0
 protected override void LoadColumn(DataRow DataRow, ColumnInfo ColumnInfo)
 {
     ColumnInfo.DbType = DataRow[11] as string;
     ColumnInfo.Index = Convert.ToInt32(DataRow[6]);
     ColumnInfo.IsKey = Convert.ToBoolean(DataRow[27]);
     ColumnInfo.IsNullable = Convert.ToBoolean(DataRow[10]);
 }
Esempio n. 3
0
 public object Clone()
 {
     var res = new ColumnInfo();
     res.TableName = this.TableName;
     res.Name = this.Name;
     res.DbType = this.DbType;
     res.Type = this.Type;
     res.SerializeType = this.SerializeType;
     res.IsKey = this.IsKey;
     res.IsNullable = this.IsNullable;
     res.Index = this.Index;
     return res;
 }
Esempio n. 4
0
 protected virtual void LoadTables(DbConnection Connection, Dictionary<string, TableInfo> Tables)
 {
     var dt = Connection.GetSchema("Tables");
     foreach (DataRow r in dt.Rows)
     {
         var info = new TableInfo();
         info.Name = r[TableNameColumnIndex] as string;
         Tables.Add(info.Name, info);
     }
     dt = Connection.GetSchema("Columns");
     foreach (DataRow r in dt.Rows)
     {
         var cinfo = new ColumnInfo();
         cinfo.TableName = r[2] as string;
         cinfo.Name = r[3] as string;
         LoadColumn(r, cinfo);
         cinfo.Type = TranslateType(cinfo.DbType);
         Tables[cinfo.TableName].Columns.Add(cinfo.Name, cinfo);
     }
 }
Esempio n. 5
0
 protected virtual void LoadColumn(DataRow DataRow, ColumnInfo ColumnInfo)
 {
     throw new NotImplementedException();
 }
Esempio n. 6
0
 protected virtual void LoadColumn(DataRow DataRow, ColumnInfo ColumnInfo)
 {
     throw new NotImplementedException();
 }