public InMemoryTable(InMemoryTable oldTable, InMemoryTableOperation op) { Initialize(); m_structure = new TableStructure(op.m_table); var colindexes = op.ColIndexes; foreach (var row in oldTable.Rows) { m_rows.Add(new ArrayDataRecord(row, colindexes, m_structure)); } }
public InMemoryTable(InMemoryTable oldTable, SingleTableDataScript script) { Initialize(); m_structure = oldTable.Structure.CloneTable(); CdlTable bt = new CdlTable(oldTable); bt.RunScript(script); foreach (ICdlRecord rec in bt.Rows) { m_rows.Add(new ArrayDataRecord(rec)); } }