コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }