private void Initialize(string dbConfig, DbConfigType dbType)
        {
            switch (dbType)
            {
            case DbConfigType.MySql:
                MysqlScope = new UnitOfMySqlWork(dbConfig);
                break;

            case DbConfigType.Oracle:
                OracleScope = new UnitOfOracleWork(dbConfig);
                break;

            case DbConfigType.SqlServer:
                SqlServerScope = new UnitOfSqlServerWork(dbConfig);
                break;

            default:
                throw new ArgumentNullException(nameof(dbType), "未确认创建何种数据库对象");
            }
        }
 protected AppService(string dbConfig, DbConfigType dbType)
 {
     Initialize(dbConfig, dbType);
 }
 public CainiaoAppService(string dbConfig, DbConfigType dbType)
     : base(dbConfig, dbType)
 {
     //Logger = new LoggerHandle(null, logfilename);
 }