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

using System.Configuration;

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

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

posted on 2018-10-03 09:41  asdyzh  阅读(415)  评论(0编辑  收藏  举报

导航