protected override void OnModelCreating(ModelBuilder modelBuilder) { //Seeders UserSeeder.Seed(modelBuilder); PaymentSeeder.Seed(modelBuilder); OrderStatusSeeder.Seed(modelBuilder); //Configurations DecimalConfiguration.Configure(modelBuilder); UserRoleConfiguration.Configure(modelBuilder); ProductIngredientConfiguration.Configure(modelBuilder); base.OnModelCreating(modelBuilder); }
protected override void OnModelCreating(ModelBuilder modelBuilder) { //Configurations UserRoleConfiguration.Configure(modelBuilder); HouseUserConfiguration.Configure(modelBuilder); //Seeders modelBuilder.Seed <RoleEf, RoleEnum>(); modelBuilder.Seed <PaymentTypeEf, PaymentTypeEnum>(); modelBuilder.Seed <ReportStatusEf, ReportStatusEnum>(); modelBuilder.Seed <PaymentStatusEf, PaymentStatusEnum>(); modelBuilder.Seed <AttachmentTypeEf, AttachmentTypeEnum>(); modelBuilder.Seed <ReservationStatusEf, ReservationStatusEnum>(); modelBuilder.Seed <ResidentialStatusEf, ResidentialStatusEnum>(); base.OnModelCreating(modelBuilder); }