数据库连接-引用配置文件

时间:2018-10-03 10:47:34   收藏:0   阅读:186

using System.Configuration;

string constr = ConfigurationManager.ConnectionStrings["SQLConnString"].ConnectionString;

string constr = "Server=127.0.0.1;user=sa;pwd=sa;database=sa";

原文:https://www.cnblogs.com/asdyzh/p/9739203.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!