I am working on a C# winforms
app and I have an SQLite
db that I access using Entity Framework
. I am about to release v1.0 of the software.
My question is: when I am developing v1.1, I may need to add new fields to the database. Of course, I want users to be able to copy their data over from v1.0, but if they just copied over the database file, EF
would surely give an exception when it tries to access the new fields that don't exist.
Do I have to create an 'Import database from v1.0' function that copies the data from the old database and inserts into the new database? I feel like this would take too long. Can I just create a function that modifies the old database directly, using EF
or otherwise?