A
A
Antoxa Zimm2014-12-03 21:59:22
Mobile development
Antoxa Zimm, 2014-12-03 21:59:22

Is it possible to change the database in the mobile application when updating the product?

How does the database change in a running mobile application when the version is updated (for example, new functionality has been added)?
When creating an application (consider a cross-platform mobile application with Xamarin), it is very likely that the database schema will change (from adding / deleting columns in a table or changing their type, to deleting / adding new tables).
The most convenient, in my opinion, is the use of SQLite databases (correct me if I'm wrong).
As ORM it would be desirable to use Entity Framework. Is it possible to use Entity Framework Code First Migrations with SQLite base in such a solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2014-12-03
@AntoXa_ZiMM

The android SDK has a class whose object helps when working with databases.
developer.android.com/training/basics/data-storage...
This object has an onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) method that
is called when the application is upgraded. In this method, tables are added, structure changed, cleared, deleted, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question