I have an existing SQLite.db that I want to use in a Windows8 application using SQLiteMetro. I have a working sample application that uses the following:
using SQLiteMetro;
Database db =new Database(Path.Combine( Windows. Storage .ApplicationData. Current. LocalFolder. Path, "test.db"));
How do I add my own existing db (e.g. “test.db” that has 1000 records) to the Win8/Metro project so the db can be accessed by the application?
You can place it in your app’s local state. Apps local state folders are located by default in
%localappdata%\packages\<packageid>\LocalState.You can then use syntax like …
Good article on Sqlite for Windows 8 Metro style apps and more information on Application Data.