Beispiel #1
0
 internal Table(Table basedOn) : base(basedOn)
 {
     Constraints = new ConstraintCollection(this);
     Indexes     = new IndexCollection(this);
     ReferFrom   = new ReferedForeignKeyCollection(this);
     foreach (Constraint c in basedOn.Constraints)
     {
         Constraints.Add(c.Backup(this));
     }
     foreach (Sequence seq in basedOn.Sequences)
     {
         Sequences.Add(seq.Backup(this));
     }
     //Constraints
     //Indexes
     //TablespaceName
     //ExtraInfo
     //ReferFrom
 }
Beispiel #2
0
 internal Table(Db2SourceContext context, string owner, string schema, string tableName) : base(context, owner, schema, tableName)
 {
     Constraints = new ConstraintCollection(this);
     Indexes     = new IndexCollection(this);
     ReferFrom   = new ReferedForeignKeyCollection(this);
 }