Skip to content

Instantly share code, notes, and snippets.

@appcoreopc
Created March 21, 2016 10:26
Show Gist options
  • Save appcoreopc/facf77989bbe8dc8d2a7 to your computer and use it in GitHub Desktop.
Save appcoreopc/facf77989bbe8dc8d2a7 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.XamarinIOS.SQLitePlatformIOS();
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