Esempio n. 1
0
 protected StarModelTableBase(string name, List <StarColumn> columns, Table tableReference)
 {
     ID      = NextID;
     Name    = name;
     Columns = columns;
     Columns.ForEach(c => c.TableRef = this);
     TableReference = tableReference;
     Relations      = new List <StarRelation>();
     Constraints    = new StarConstraints();
 }
Esempio n. 2
0
 protected StarModelTableBase(Table tableRef)
 {
     ID      = NextID;
     Name    = tableRef.Name;
     Columns = tableRef.Columns.Select(c => new StarColumn(c)).ToList();
     Columns.ForEach(c => c.TableRef = this);
     TableReference = tableRef;
     Relations      = new List <StarRelation>();
     Constraints    = new StarConstraints();
 }