摘要: 今天使用VS2010和sqlserver数据库时,无论使用的是强类型DataSet还是弱类型DataSet,更改的数据都不能修改到数据库,遇到这个问题思考了很久,终于明白了,必须在program.cs main函数中加入以下代码: string dataDir = AppDomain.CurrentDomain.BaseDirectory; if (dataDir.EndsWith(@"\bin\Debug\") || dataDir.EndsWith(@"\bin\Release\")) { dataDir = S... 阅读全文
posted @ 2013-05-03 22:43 huanshare 阅读(294) 评论(0) 推荐(0) 编辑