コード例 #1
0
ファイル: ForeignKey.cs プロジェクト: Qorpent/Npgsql2
 private ForeignKey(ForeignKey source)
 {
     _table = source._table;
       _from = new ForeignKeyFromItem(this, source._from.Column);
       _to = new ForeignKeyToItem(this, source._to.Catalog, source._to.Table, source._to.Column);
       _name = source._name;
       _dirty = source._dirty;
 }
コード例 #2
0
 private ForeignKey(ForeignKey source)
 {
     _table = source._table;
     _from  = new ForeignKeyFromItem(this, source._from.Column);
     _to    = new ForeignKeyToItem(this, source._to.Catalog, source._to.Table, source._to.Column);
     _name  = source._name;
     _dirty = source._dirty;
 }
コード例 #3
0
ファイル: ForeignKey.cs プロジェクト: Qorpent/Npgsql2
 internal ForeignKey(DbConnection cnn, Table table, DataRow row)
 {
     _table = table;
       if (row != null)
       {
     _from = new ForeignKeyFromItem(this, row["FKEY_FROM_COLUMN"].ToString());
     _to = new ForeignKeyToItem(this, row["FKEY_TO_CATALOG"].ToString(), row["FKEY_TO_TABLE"].ToString(), row["FKEY_TO_COLUMN"].ToString());
     _name = row["CONSTRAINT_NAME"].ToString();
       }
       else
       {
     _name = null;
     _from = new ForeignKeyFromItem(this, "");
     _to = new ForeignKeyToItem(this, _table.Catalog, "", "");
       }
 }
コード例 #4
0
 internal ForeignKey(DbConnection cnn, Table table, DataRow row)
 {
     _table = table;
     if (row != null)
     {
         _from = new ForeignKeyFromItem(this, row["FKEY_FROM_COLUMN"].ToString());
         _to   = new ForeignKeyToItem(this, row["FKEY_TO_CATALOG"].ToString(), row["FKEY_TO_TABLE"].ToString(), row["FKEY_TO_COLUMN"].ToString());
         _name = row["CONSTRAINT_NAME"].ToString();
     }
     else
     {
         _name = null;
         _from = new ForeignKeyFromItem(this, "");
         _to   = new ForeignKeyToItem(this, _table.Catalog, "", "");
     }
 }