示例#1
0
        public override Column GetColumn(Column column)
        {
            Column superColumn = base.GetColumn(column);

            if (superColumn != null)
            {
                return(superColumn);
            }
            else
            {
                return(includedTable.GetColumn(column));
            }
        }
示例#2
0
    protected virtual void CopyPrimaryKey(Table dataTable,
      Table auditTable)
    {
      if (dataTable.PrimaryKey != null)
      {
        var pk = new PrimaryKey();

        pk.AddColumns(
          from column in dataTable.PrimaryKey.ColumnIterator
          select auditTable.GetColumn(column));

        auditTable.PrimaryKey = pk;
      }
    }