public Relationship(Table src, Table dest, Column srcColumn, Column destColumn) { Source = src; Destination = dest; SourceColumns.Add(srcColumn); DestinationColumns.Add(destColumn); }
public Relationship(Table src, Table dest, string srcColumn, string destColumn) { Source = src; Destination = dest; Column srcCol = Source[srcColumn]; Column destCol = Destination[destColumn]; if (srcCol != null && destCol != null) { SourceColumns.Add(srcCol); DestinationColumns.Add(destCol); } }