33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using Indotalent.Data.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Indotalent.Infrastructure.Database.Demo;
|
|
|
|
public static class EmployeeGroupSeeder
|
|
{
|
|
public static async Task GenerateDataAsync(AppDbContext context)
|
|
{
|
|
if (await context.EmployeeGroup.AnyAsync()) return;
|
|
|
|
var employeeGroups = new List<EmployeeGroup>
|
|
{
|
|
new EmployeeGroup { Name = "Medical Doctors & Specialists" },
|
|
new EmployeeGroup { Name = "Registered Nurses & Care Staff" },
|
|
new EmployeeGroup { Name = "Pharmacy & Dispensing Team" },
|
|
new EmployeeGroup { Name = "Laboratory & Diagnostic Technicians" },
|
|
new EmployeeGroup { Name = "Radiology & Imaging Technicians" },
|
|
new EmployeeGroup { Name = "Dental & Allied Health Professionals" },
|
|
new EmployeeGroup { Name = "Patient Reception & Front Desk" },
|
|
new EmployeeGroup { Name = "Medical Billing & Insurance" },
|
|
new EmployeeGroup { Name = "Clinic Administration & Management" },
|
|
new EmployeeGroup { Name = "Facility Maintenance & Security" }
|
|
};
|
|
|
|
foreach (var group in employeeGroups)
|
|
{
|
|
await context.EmployeeGroup.AddAsync(group);
|
|
}
|
|
|
|
await context.SaveChangesAsync();
|
|
}
|
|
} |