예제 #1
0
 public Relationship(Table src, Table dest, Column srcColumn, Column destColumn)
 {
     Source      = src;
     Destination = dest;
     SourceColumns.Add(srcColumn);
     DestinationColumns.Add(destColumn);
 }
예제 #2
0
        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);
            }
        }