Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
- 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 "POSTGRESQL":
- operation = new PostgreSQLSQLCNASDataOperation();
- break;
- case "DB2":
-
- default:
- operation = new DB2CNASDataOperation();
- break;
- }
- return operation;
- }
- }
- }
|