Implements authorization caching and check in the web client

This commit is contained in:
BinaryAlley committed 2024-12-06 18:46:48 +02:00
1 parent 7bca5b1ba3
commit 8eb1b9f13c
108 files changed
+5931 -73

No files matched your search

@@ -21,7 +21,9 @@ public class UserRoleConfiguration : IEntityTypeConfiguration<UserRoleEntity>
// composite primary key
builder.HasKey(userRole => new { userRole.UserId, userRole.RoleId });
builder.Ignore(userRole => userRole.Id); // Id is only needed as a generic constraint for the repository, but this entity uses a composite key as Id
// foreign key: User
builder.HasOne(userRole => userRole.User)
.WithMany(user => user.UserRoles)