Пример #1
0
        public SQLPricingData(string connectionString)
        {
            if (string.IsNullOrWhiteSpace(connectionString))
            {
                connectionString = ConfigurationHelper.GetConnectionString("PricingEngineDB");
            }

            _connectionString = connectionString;
            var dct = ConfigurationHelper.GetAppConfig("DataCommandTimeout", false, "60");

            if (!int.TryParse(dct, out _commandTimeout))
            {
                _commandTimeout = 60;
            }
        }
 internal static string GetConnectionString(string key)
 {
     return(ConfigurationHelper.GetConnectionString(key, true, string.Empty));
 }