Opening a connection to the SQLite database requires the path to the database file:

The SQLite database needs to be stored in the Isolated Storage of the application for read-write access to the database. TheIsolatedStorageFile class of Windows Phone does not have a method to get the path of the file. StackOverflow has a post which provides an ugly hack to get the path of an IsolatedStorageFile. The answer in StackOverflow is an ugly hack. Beneath the answer is a better way to get the path without resorting to reflection. Here is how:

Open the IsolatedStorageFile. The IsolatedStorageFileStream class a Name property which has the path of the file in the Windows phone file system.

Opening a SQLite database from the Isolated Storage in Windows phone
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *