Created
September 10, 2012 23:11
-
-
Save timheuer/3694655 to your computer and use it in GitHub Desktop.
SQLite Open with Flags
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
var dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "foo.db"); | |
using (var db = new SQLite.SQLiteConnection(dbpath, SQLite.SQLiteOpenFlags.Create | SQLiteOpenFlags.ReadWrite, true)) | |
{ | |
db.DropTable<Person>(); | |
db.CreateTable<Person>(); | |
db.Insert(new Person() { Fullname = "Tim Heuer" }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment