This commit is contained in:
Ccjcarkbla
2026-02-23 21:57:17 -05:00
parent 9b9bdacb3a
commit d12f936e42
10 changed files with 111 additions and 12 deletions
+6 -4
View File
@@ -15,10 +15,12 @@ public sealed class GroupLookupDbContext : DbContext
{
modelBuilder.Entity<GroupLookupEntity>(e =>
{
e.ToTable("GroupLookup");
e.HasKey(x => x.GroupClaimValue);
e.Property(x => x.GroupClaimValue).HasMaxLength(256).IsRequired();
e.Property(x => x.DisplayName).HasMaxLength(256).IsRequired();
e.ToTable("EmployeeGroup");
e.HasKey(x => x.Id);
e.Property(x => x.Id).ValueGeneratedNever();
e.Property(x => x.Name).HasMaxLength(256).IsRequired();
e.Property(x => x.EmployeeId).IsRequired();
e.HasIndex(x => x.Name);
});
}