public void CreateDatabase() { // create a new database using (var ctx = NewContext()) ctx.CreateDatabase(); // saves version number using (var ctx = NewContext()) { var versionKey = new Meta { Key = "Version", Value = CurrentSchemaVersion.ToString() }; ctx.GetTable<Meta>().InsertOnSubmit(versionKey); ctx.SubmitChanges(); } }
partial void UpdateMeta(Meta instance);
partial void DeleteMeta(Meta instance);
partial void InsertMeta(Meta instance);