protected override void Seed(PinnaRentDBContext context) { if (Singleton.SeedDefaults) { var setting = context.Set <SettingDTO>().Find(1); if (setting == null) { context = (PinnaRentDBContext)DbContextUtil.Seed(context); } } base.Seed(context); }
protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); DbContextUtil.OnModelCreating(modelBuilder); }