Xamarin IOS - how to include the existing sqlite database file into solution

Viewed 2399

In Xamarin IOS solution, the standard code for sqlite database path is:

var sqliteFilename = "MyDatabase.db3";        
string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder instead
var path = Path.Combine (libraryPath, sqliteFilename);

The above code is fine if the database is created from scratch. but my question is how should I include the existing sqlite database into the solution, so it can be copied over to "Library" folder?

1 Answers
Related