C#获取数据库连接字符
有两种用法:
1)
using System.Configuraiton;
string ConStr=ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString;
2)
string ConStr=System.Configuraiton.ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString;
逆水行舟、不进则退