Exemple #1
0
        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();
              }
        }
Exemple #2
0
 partial void UpdateMeta(Meta instance);
Exemple #3
0
 partial void DeleteMeta(Meta instance);
Exemple #4
0
 partial void InsertMeta(Meta instance);