码迷,mamicode.com
首页 > 其他好文 > 详细

Config ConnectionStrings

时间:2018-08-06 23:19:27      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:manager   sch   ini   log   school   config   uart   str   ati   

<connectionStrings>
<add name ="MyschoolConnectionString" connectionString ="Data Source =.;Initial Catalog = MySchool1;uid = sa;pwd = 123456"/>
</connectionStrings>

string connstr = ConfigurationManager.ConnectionStrings["MyschoolConnectionString"].ConnectionString;


引入configuartion

Config ConnectionStrings

标签:manager   sch   ini   log   school   config   uart   str   ati   

原文地址:https://www.cnblogs.com/iWaitYou/p/9434000.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!