public override Column GetColumn(Column column) { Column superColumn = base.GetColumn(column); if (superColumn != null) { return(superColumn); } else { return(includedTable.GetColumn(column)); } }
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; } }