Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

AspnetRoles and AspnetUsers [one to many]

$
0
0

Hello,

By default the relationship created using the IdentityDbContext creates a many to many relationship between aspnetusers and aspnetroles. 

Normally this is fine but I want to limit a user to only one role at a time. Can anyone tell me how to override the default implementation?

Thanks!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>