Created
October 8, 2014 19:57
-
-
Save dbeattie71/ae1ec99947f2f6c4419a to your computer and use it in GitHub Desktop.
SQLite and Windows Phone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////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