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 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user