Example #1
0
        public override bool Execute(KitosContext context)
        {
            var optionTypes = LoadAllOptionTypes();

            foreach (var optionType in optionTypes)
            {
                Console.Out.WriteLine("Enabling all options of type:" + optionType.Name);
                var dbSet = context.Set(optionType).ToListAsync().GetAwaiter().GetResult();
                EnableAllLocalOptions(dbSet);
                context.SaveChanges();
            }

            return(true);
        }