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(); }
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(); }