Skip to content

Instantly share code, notes, and snippets.

@dbeattie71
Created October 8, 2014 19:57
Show Gist options
  • Save dbeattie71/ae1ec99947f2f6c4419a to your computer and use it in GitHub Desktop.
Save dbeattie71/ae1ec99947f2f6c4419a to your computer and use it in GitHub Desktop.
SQLite and Windows Phone
////https://github.com/oysteinkrog/SQLite.Net-PCL/issues/25
////http://developer.nokia.com/community/wiki/How_to_use_SQLite_in_Windows_Phone
////https://www.mail-archive.com/[email protected]/msg82665.html
////http://andywigleyblog.azurewebsites.net/?tag=windows-8-1
var sqLiteConnectionFactory = SimpleIoc.Default.GetInstance<ISQLiteConnectionFactory>();
var tempStoreDirectoryQuery = string.Format("PRAGMA temp_store_directory = '{0}';",
ApplicationData.Current.LocalFolder.Path);
var sqLiteConnection = sqLiteConnectionFactory.GetConnection();
sqLiteConnection.Execute(tempStoreDirectoryQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment