在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();