连接字符串 代码如下: string conn = ConfigurationManager.ConnectionStrings[“NorthwindConnectionString”].ConnectionString; confige文件 代码如下: <add name=”NorthwindConnectionString” connectionString=”Data Source=.;Initial Catalog=Northwind;Integrated Security=True” providerNam