Created
March 21, 2016 10:25
-
-
Save appcoreopc/045eee2ddbb7d14c84a0 to your computer and use it in GitHub Desktop.
This file contains 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
string applicationFolderPath = System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "mydb.db"); | |
if (!Directory.Exists(applicationFolderPath)) | |
Directory.CreateDirectory(applicationFolderPath); | |
var platform = new SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid(); | |
string databaseFileName = Path.Combine(applicationFolderPath, "mydb.db"); | |
var coreData = new CoreDataProvider(databaseFileName, platform); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment