mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Implements authorization caching and check in the web client
This commit is contained in:
1 parent
7bca5b1ba3
commit
8eb1b9f13c
108 files changed
+5931
-73
No files matched your search
@@ -21,6 +21,8 @@ public class RolePermissionConfiguration : IEntityTypeConfiguration<RolePermissi
|
||||
|
||||
// composite primary key
|
||||
builder.HasKey(rolePermission => new { rolePermission.RoleId, rolePermission.PermissionId });
|
||||
|
||||
builder.Ignore(rolePermission => rolePermission.Id); // Id is only needed as a generic constraint for the repository, but this entity uses a composite key as Id
|
||||
|
||||
// foreign key: Role
|
||||
builder.HasOne(rolePermission => rolePermission.Role)
|
||||
|
||||
Reference in new issue
Block a user