Ejemplo n.º 1
0
 public DbRefConstraintInfo(DbModel dbModel, DbKeyInfo fromKey, DbKeyInfo toKey, bool cascadeDelete, EntityReferenceInfo ownerRef = null)
     : base(dbModel, fromKey.Schema, DbObjectType.RefConstraint, ownerRef)
 {
     Util.Check(fromKey != null, "fromKey may not be null.");
     Util.Check(toKey != null, "toKey may not be null.");
     FromKey         = fromKey;
     ToKey           = toKey;
     OwnerReference  = ownerRef;
     CascadeDelete   = cascadeDelete;
     base.GlobalName = DbModelHelper.GetGlobalName(fromKey.Table.Schema, fromKey.Name);
 }
Ejemplo n.º 2
0
 public DbRefConstraintInfo(DbModel dbModel, DbKeyInfo fromKey, DbKeyInfo toKey, bool cascadeDelete, EntityReferenceInfo ownerRef = null)
     : base(dbModel, fromKey.Schema, DbObjectType.RefConstraint, ownerRef)
 {
     Util.Check(fromKey != null, "fromKey may not be null.");
       Util.Check(toKey != null, "toKey may not be null.");
       FromKey = fromKey;
       ToKey = toKey;
       OwnerReference = ownerRef;
       CascadeDelete = cascadeDelete;
       base.GlobalName = DbModelHelper.GetGlobalName(fromKey.Table.Schema, fromKey.Name);
 }