Why are my LINQ INSERTS not persisting in SQL Server CE 3.5?

*爱你&永不变心* 提交于 2019-12-01 20:28:04

Check that your DB file is not copied to the output directory at each build (in the property page of the project item)

Of course 5 minutes after posting my question I have a huge DUH! moment. Turns out I was refreshing the database in my project to see if the inserts were persisting when I should have been checking \bin\Debug\MyData.sdf instead.

Trust the code Sean, trust the code. Oh, and remember you're an idiot sometimes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!