System.Configuration 和Connection
先引用System.Configuration才能使用
System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SQL SERVER"].ConnectionString;
先引用System.Configuration才能使用
System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SQL SERVER"].ConnectionString;