That's because you override the database on each build.
Probably you have the Build Action
set to Content
and the Copy to Output Directory
set to Copy If Newer
.
From @steve's link, regarding the Copy if newer
value:
We don’t recommend this option for .mdb or .mdf files. The database file can change even when no changes are made to the data. Simply opening a connection on a data file (for example, by expanding the Tables node in Server Explorer) can mark it as newer.