Claims lookup table

Multi tool use
Multi tool use


Claims lookup table



In asp.net identity model there are the tables AspNetRoleClaims and AspNetUserClaims which contain the foreign keys RoleId and UserId respectively and also the columns ClaimType and ClaimValue.
The question is why there is not a lookup table for the claims, a table which would contain Id and ClaimType or ClaimName and then we use a foriegn key for it in the tables AspNetRoleClaims and AspNetUserClaims?





Why would that be a good idea? Claims can be anything, your table would be an intermediate step requiring maintenance.
– bommelding
Jul 2 at 8:35





In the current case, you would repeat the claim type with each user and role, you might mistype the claimtype when you write it many times.
– malballah
Jul 2 at 9:03









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

DiPnuZ,Ohq1IpzoVFv23 R3bhqc1R9vEt 1Py5Vw5n52gDO44XfGUQgU1G1jxxJ
2TRrWIHPjVsW,k20,kEa9ehECZ3

Popular posts from this blog

Rothschild family

Boo (programming language)