Extending IdentityRole and IdentityUser

前端 未结 2 1315
悲哀的现实
悲哀的现实 2021-02-09 14:33

I am using ASPNet Identity to implement security in my web application.

There is a requirements where in, I need to extend the IdentityRole and IdentityUser.

2条回答
  •  轮回少年
    2021-02-09 14:54

    You can inherit from IdentityRole in your application the same way that you do your IdentityUser. Why do you need to extend IdentityRole? Please take a look at the following article which explains in detail what you are trying to do http://typecastexception.com/post/2014/02/13/ASPNET-MVC-5-Identity-Extending-and-Modifying-Roles.aspx

提交回复
热议问题