initial commit

This commit is contained in:
2026-07-21 13:52:43 +07:00
commit f0e6f38940
881 changed files with 66309 additions and 0 deletions
@@ -0,0 +1,33 @@
using Indotalent.Data.Entities;
using Microsoft.EntityFrameworkCore;
namespace Indotalent.Infrastructure.Database.Demo;
public static class VendorGroupSeeder
{
public static async Task GenerateDataAsync(AppDbContext context)
{
if (await context.VendorGroup.AnyAsync()) return;
var vendorGroups = new List<VendorGroup>
{
new VendorGroup { Name = "Pharmaceuticals & Medications" },
new VendorGroup { Name = "Medical Equipment & Instruments" },
new VendorGroup { Name = "Laboratory Supplies & Reagents" },
new VendorGroup { Name = "Consumables & Disposables" },
new VendorGroup { Name = "Medical Waste Management" },
new VendorGroup { Name = "Uniforms & Medical Linens" },
new VendorGroup { Name = "Cleaning & Hygiene Supplies" },
new VendorGroup { Name = "Facility Maintenance Services" },
new VendorGroup { Name = "IT & Software Services" },
new VendorGroup { Name = "Office & Administrative Supplies" }
};
foreach (var group in vendorGroups)
{
await context.VendorGroup.AddAsync(group);
}
await context.SaveChangesAsync();
}
}