2009年12月3日

WinForm(C#) 引用app.config文件中的数据库

摘要: app.config 中一部份代码<configuration><appSettings> //注意要加上这个,否责会报错,“什么为能初始化之类”<add key="ConnSqlStr" value="数据库链接字段"/>// 要用像 web开发似的(web.config)中还要加providerName这个数据库提供者,否责一样报错</appSettings></configuration>引用: string conn = configuration.configurationSettin 阅读全文

posted @ 2009-12-03 20:01 SonyXbox 阅读(557) 评论(0) 推荐(0) 编辑

导航