Beispiel #1
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;
 }
 private ForeignKey(ForeignKey source)
 {
     _table    = source._table;
     _id       = source._id;
     _ordinal  = source._ordinal;
     _from     = new ForeignKeyFromItem(this, source._from.Column);
     _to       = new ForeignKeyToItem(this, source._to.Catalog, source._to.Table, source._to.Column);
     _name     = source._name;
     _onUpdate = source._onUpdate;
     _onDelete = source._onDelete;
     _match    = source._match;
     _dirty    = source._dirty;
 }
Beispiel #3
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
     {
         _from = new ForeignKeyFromItem(this, "");
         _to   = new ForeignKeyToItem(this, _table.Catalog, "", "");
     }
 }
 internal ForeignKey(DbConnection cnn, Table table, DataRow row)
 {
     _table = table;
     if (row != null)
     {
         _id       = (int)row["FKEY_ID"];
         _ordinal  = (int)row["FKEY_FROM_ORDINAL_POSITION"];
         _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();
         _onUpdate = row["FKEY_ON_UPDATE"].ToString();
         _onDelete = row["FKEY_ON_DELETE"].ToString();
         _match    = row["FKEY_MATCH"].ToString();
     }
     else
     {
         _id      = -1;
         _ordinal = -1;
         _from    = new ForeignKeyFromItem(this, "");
         _to      = new ForeignKeyToItem(this, _table.Catalog, "", "");
     }
 }
 internal ForeignKey(DbConnection cnn, Table table, DataRow row)
 {
   _table = table;
   if (row != null)
   {
     _id = (int)row["FKEY_ID"];
     _ordinal = (int)row["FKEY_FROM_ORDINAL_POSITION"];
     _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();
     _onUpdate = row["FKEY_ON_UPDATE"].ToString();
     _onDelete = row["FKEY_ON_DELETE"].ToString();
     _match = row["FKEY_MATCH"].ToString();
   }
   else
   {
     _id = -1;
     _ordinal = -1;
     _from = new ForeignKeyFromItem(this, "");
     _to = new ForeignKeyToItem(this, _table.Catalog, "", "");
   }
 }
 private ForeignKey(ForeignKey source)
 {
   _table = source._table;
   _id = source._id;
   _ordinal = source._ordinal;
   _from = new ForeignKeyFromItem(this, source._from.Column);
   _to = new ForeignKeyToItem(this, source._to.Catalog, source._to.Table, source._to.Column);
   _name = source._name;
   _onUpdate = source._onUpdate;
   _onDelete = source._onDelete;
   _match = source._match;
   _dirty = source._dirty;
 }
 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
   {
     _from = new ForeignKeyFromItem(this, "");
     _to = new ForeignKeyToItem(this, _table.Catalog, "", "");
   }
 }
 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;
 }