Database file .sdf does not update after closing application

后端 未结 3 520
别跟我提以往
别跟我提以往 2020-12-12 05:55

I am creating a Desktop application using Microsoft Visual Studio .NET 2008. I am using a .sdf file as my database. My problem is that when I am making changes to my records

3条回答
  •  独厮守ぢ
    2020-12-12 06:44

    Every time you run from VS.NET, it is copying the sdf file from the solution into your bin folder, and overwriting the bin/sdf file that was there from the last run. Change your sdf file's properties to "copy if newer" instead of "copy always".

提交回复
热议问题