摘要: public abstract class SQLHelper { //只读的静态数据库连接字符串 //需添加引用System.Configuration; public static readonly string connString = ConfigurationManager.Connect 阅读全文
posted @ 2019-11-01 07:29 凌心缘 阅读(537) 评论(0) 推荐(0) 编辑
摘要: <connectionStrings> <add name="ConnectionStringName" connectionString="Data Source=服务器名;Initial Catalog=数据库名;User ID=用户;Password=密码" providerName="Sys 阅读全文
posted @ 2019-11-01 07:28 凌心缘 阅读(5081) 评论(0) 推荐(0) 编辑