What is the difference between IdentityDbContext and IdentityDbContext <ApplicationUser> in MVC5
On what basis should I decide to use IdentityDbContext versus IdentityDbContext<ApplicationUser> in an ASP.NET MVC5 application?
What benefits do we get with IdentityDbContext<ApplicationUser> instead of the non-generic IdentityDbContext ?
+8
Sandeep kumar
source share1 answer
IdentityDbContext<ApplicationUser> allows you to use your own ApplicationUser class as a User object. That is, you can have custom properties for your users. The IdentityDbContext class inherits from IdentityDbContext<IdentityUser> , which means that you will need to use the IdentityUser class for your users.
If you want to have more properties for user objects than several properties that IdentityUser provide (username, password, and several more), you can select IdentityDbContext<ApplicationUser>
+10
Olav NybΓΈ
source share