摘要: You should use:Data Source=|DataDirectory|\MyDb.sdf|DataDirectory| points to the App_Data folder.在程序启动时,设置AppDomain.CurrentDomain.setData(“DataDirectory”,我的目录字符串);Winform的程序那当然是在Main函数中了,废话不说了,我的代码如下stringp=AppDomain.CurrentDomain.BaseDirectory; if(p.IndexOf("\\bin\\")>0) { if(p.EndsWit 阅读全文
posted @ 2013-08-07 13:26 iDEAAM 阅读(404) 评论(0) 推荐(0) 编辑