initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user