Beispiel #1
0
        private void simpleAction1_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            using (var db = new MyDbContext())
            {
                db.Categories.RemoveRange(db.Categories);
                db.SaveChanges();
                MyInitializer.SeedRecords(db);
            }

            View.ObjectSpace.Refresh();
        }