Example #1
0
        public Rds(ServiceName hostServiceName, DbType dbType)
        {
            var config = ServiceConfigHelper.GlobalServiceConfig.
                         GetServiceFromBuffer <PublicCloudRdsConfig>(
                ServiceName.Cloud_RdsService, hostServiceName);

            Init(config, dbType);
        }
Example #2
0
 private void Init(PublicCloudRdsConfig config, DbType dbType)
 {
     _config           = config;
     _connectionString = config.GetDbConnectString();
 }