Closed CeelMarten closed 6 years ago
I found the solution. Just Inherit ApplicationUser
from IdentityUser<long>
, ApplicationUserRole
from IdentityUserRole<long>
then use
public class ApplicationDbContext : IdentityDbContext<ApplicationUser,IdentityRole<long>,long>
I have a class ApplicationUser witch inherited from IdentityUser
and I want to use it in ApplicationDbContext
Visual Studio says that I can't use ApplicationUser because there is no implicit reference conversion from ApplicationUser to IdentityUser. I found this in github where
the solution is to change code from
.AddEntityFrameworkStores<ApplicationDbContext>()
to.AddEntityFrameworkStores<ApplicationDbContext, long>()
but there is not overload for this method