protected override void Seed(PDEXDbContext context) { if (Singleton.SeedDefaults) { var setting = context.Set <UserDTO>().Find(1); if (setting == null) { context = (PDEXDbContext)DbContextUtil.Seed(context); } } base.Seed(context); }
protected override void Seed(PDEXServerDBContext context) { if (Singleton.SeedDefaults) { //var client = context.Set<SettingDTO>().Find(1);// context.Set<ClientDTO>().Find(1); //if (client == null) //{ context = (PDEXServerDBContext)DbContextUtil.Seed(context); //} } base.Seed(context); }