开发者

How to prevent SQL Compact DB to be erased?

开发者 https://www.devze.com 2022-12-13 18:07 出处:网络
I\'m developing an applciation using SQL Compact database in Visual Studio 2008. When I start the application and run the process, the data is being loaded into database for few 开发者_JS百科hours wor

I'm developing an applciation using SQL Compact database in Visual Studio 2008. When I start the application and run the process, the data is being loaded into database for few 开发者_JS百科hours worth of few tens of megabytes. However, when I quite debugging, change something in code (not in DB structure), run the project again, the database is erased.

Does anyone know how to prevent this behavior? I need the data to stay in DB to test on it.


Did you add the database file to your project? Select it and in the Properties window change its Copy property from Always to If Newer.

0

精彩评论

暂无评论...
验证码 换一张
取 消