Files
2026-07-21 14:35:37 +07:00

33 lines
1.2 KiB
C#

using Indotalent.Data.Entities;
using Microsoft.EntityFrameworkCore;
namespace Indotalent.Infrastructure.Database.Demo;
public static class BookingGroupSeeder
{
public static async Task GenerateDataAsync(AppDbContext context)
{
if (await context.BookingGroup.AnyAsync()) return;
var bookingGroups = new List<BookingGroup>
{
new BookingGroup { Name = "Massage & Spa Suites" },
new BookingGroup { Name = "Private Fitness Training" },
new BookingGroup { Name = "Group Exercise Classes" },
new BookingGroup { Name = "Yoga & Pilates Studios" },
new BookingGroup { Name = "Hydrotherapy & Pool Lanes" },
new BookingGroup { Name = "Sauna & Steam Facilities" },
new BookingGroup { Name = "Holistic Health Consultations" },
new BookingGroup { Name = "Beauty & Aesthetic Stations" },
new BookingGroup { Name = "Meditation & Recovery Lounges" },
new BookingGroup { Name = "Physical Therapy Zones" }
};
foreach (var bookingGroup in bookingGroups)
{
await context.BookingGroup.AddAsync(bookingGroup);
}
await context.SaveChangesAsync();
}
}