/// <summary> /// 取出Access的连接 /// </summary> /// <param name="AppSettings"></param> public SQLServer(string AppSettings, string AccessDate) { this.privateParameterList = new ArrayList(); this.privateModuleName = this.GetType().ToString(); this.privateConnectionString = SecurityService.SymmetricDecrypt(ConfigurationManager.AppSettings[AppSettings]) + HttpContext.Current.Server.MapPath(SecurityService.SymmetricDecrypt(ConfigurationManager.AppSettings[AccessDate])); }
/// <summary> /// 取出不同SQL的连接key为自定义 /// </summary> /// <param name="AppSettings"></param> public SQLServer(string AppSettings) { this.privateParameterList = new ArrayList(); this.privateModuleName = this.GetType().ToString(); this.privateConnectionString = SecurityService.SymmetricDecrypt(ConfigurationManager.AppSettings[AppSettings]); }