在DAl中添加引用
;
添加引用
using System.Web.Configuration
//获取Web.Config数据库连接字符串
private static readonly string SqlConnectionString = WebConfigurationManager.ConnectionStrings["SQLCONNECTIONSTRING"].ToString();
在DAl中添加引用
;
添加引用
using System.Web.Configuration
//获取Web.Config数据库连接字符串
private static readonly string SqlConnectionString = WebConfigurationManager.ConnectionStrings["SQLCONNECTIONSTRING"].ToString();