Skip to content

Instantly share code, notes, and snippets.

@appcoreopc
Created March 21, 2016 10:25
Show Gist options
  • Save appcoreopc/045eee2ddbb7d14c84a0 to your computer and use it in GitHub Desktop.
Save appcoreopc/045eee2ddbb7d14c84a0 to your computer and use it in GitHub Desktop.
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