revamp2
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user