コード例 #1
0
        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();
            }
        }
コード例 #2
0
 public DataLoaderCH(ADBInstance instance)
 {
     base.DBInstance = instance;
     base.DataSource = "财汇";
 }
コード例 #3
0
        public static void Initiate(DataVendor vendor, DatabaseType type, string conn)
        {
            ADBInstance db = GetDBInstance(type, conn);

            _DataLoader = GetDataLoader(vendor, db);
        }