DataBinding
Any guidance?
Any guidance?
The solution is to select your database.mdf file in the solution explorer, and set its "copy to output" property to "do not copy". You may need to do some manual copying if you want to make changes via the IDE, but your runtime changes will be preserved.
--Mable
Mable wrote:
There are actually two copies of the database: one in the app directory, which is the one you work with from the IDE, and one in the output directory, which is the one you work with when the program is running. By default, VB copies the app version to the output directory whenever you start your program. Then you make your changes and save them. All is well, until you restart the program. Then the app version gets copied again and wipes out your changes. The solution is to select your database.mdf file in the solution explorer, and set its "copy to output" property to "do not copy". You may need to do some manual copying if you want to make changes via the IDE, but your runtime changes will be preserved.
--Mable