public static TableMapper Create(IDatabaseAdapter src, IDatabaseAdapter dest, string srcTableName) { ITableConversionRules rules; switch (srcTableName) { case "tblContacts": rules = new AccountConversionRules(); break; default: throw new Exception(String.Format("Unknown srcTableName {0}", srcTableName)); } return new TableMapper(src, dest, rules); }
public void TestInsertExtractedColumns() { var rules = new AccountConversionRules(); var extractColumn = new ExtractColumn(this.src, this.dest, rules); var count = extractColumn.PerformRefactor(); }