コード例 #1
0
        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);
        }
コード例 #2
0
 public void TestInsertExtractedColumns()
 {
     var rules = new AccountConversionRules();
     var extractColumn = new ExtractColumn(this.src, this.dest, rules);
     var count = extractColumn.PerformRefactor();
 }