private static ADataLoader GetDataLoader(DataVendor vendor, ADBInstance instance) { switch (vendor) { case DataVendor.CaiHui: return(new DataLoaderCH(instance)); case DataVendor.Wind: throw new NotImplementedException(); case DataVendor.JuYuan: throw new NotImplementedException(); case DataVendor.DZH: throw new NotImplementedException(); case DataVendor.ZhaoYang: throw new NotImplementedException(); default: throw new NotImplementedException(); } }
public DataLoaderCH(ADBInstance instance) { base.DBInstance = instance; base.DataSource = "财汇"; }
public static void Initiate(DataVendor vendor, DatabaseType type, string conn) { ADBInstance db = GetDBInstance(type, conn); _DataLoader = GetDataLoader(vendor, db); }