You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using CnasSynchronousCommon;
- using CnasSynchronusDAL;
- using CnasSynchronusIDAL;
- using CnasSynchrousModel;
- using System;
- using System.Collections.Generic;
- using System.Configuration;
- using System.Data;
- using System.Linq;
- using System.Text;
-
- namespace CnasSynchronusClient
- {
- /// <summary>
- /// CNAS数据库数据操作
- /// </summary>
- public class CnasDataOperationFact
- {
- //从Config中获取目标数据库的的类型
- private static string strStartWebApi = GlobalCommonOperation.strStartWebApi;
- private static string strDataType = GlobalCommonOperation.strTargetDbType;
- //private static string strDataType = "DB2";
-
- public static ICnasDataOperation CnasDataOperation()
- {
- ICnasDataOperation operation;
-
- switch (strDataType.ToUpper())
- {
- case "MYSQL":
- if (strStartWebApi == "1")
- operation = new MySQLCNASDataOperationByWeb();
- else
- operation = new MySQLCNASDataOperation();
- break;
- case "ORACLE":
- operation = new OracleCnasDataOperation();
- break;
- case "DB2":
- default:
- operation = new DB2CNASDataOperation();
- break;
- }
- return operation;
- }
- }
- }
|