protected override void OnModelCreating(ModelBuilder modelBuilder) { AdminEntityConfig.SetEntityBuilder(modelBuilder.Entity <Admin>()); BookingEntityConfig.SetEntityBuilder(modelBuilder.Entity <Booking>()); OfficeEntityConfig.SetEntityBuilder(modelBuilder.Entity <Office>()); OfficesToRoomEntityConfig.SetEntityBuilder(modelBuilder.Entity <OfficesToRoom>()); RoomEntityConfig.SetEntityBuilder(modelBuilder.Entity <Room>()); RoomToServiceEntityConfig.SetEntityBuilder(modelBuilder.Entity <RoomToService>()); ServiceEntityConfig.SetEntityBuilder(modelBuilder.Entity <Service>()); UserEntityConfig.SetEntityBuilder(modelBuilder.Entity <User>()); }
protected override void OnModelCreating(ModelBuilder modelBuilder) { AdminEntityConfig.SetEntityBuilder(modelBuilder.Entity <AdminEntity>()); BookingEntityConfig.SetEntityBuilder(modelBuilder.Entity <BookingEntity>()); Office2RoomsEntityConfig.SetEntityBuilder(modelBuilder.Entity <Office2RoomsEntity>()); OfficeEntityConfig.SetEntityBuilder(modelBuilder.Entity <OfficeEntity>()); Room2ServicesEntityConfig.SetEntityBuilder(modelBuilder.Entity <Room2ServicesEntity>()); RoomEntityConfig.SetEntityBuilder(modelBuilder.Entity <RoomEntity>()); ServiceEntityConfig.SetEntityBuilder(modelBuilder.Entity <ServiceEntity>()); UserEntityConfig.SetEntityBuilder(modelBuilder.Entity <UserEntity>()); base.OnModelCreating(modelBuilder); }