Error Unable to materialize entity instance of type 'IdentityUser'. No discriminators matched the
Error: Unable to materialize entity instance of type 'IdentityUser'. No discriminators matched the discriminator value ''
6 Replies
ApplicationDbContext
ApplicationUser
picture of database
I believe you need to pass your custom user type to the
IdentityDbContext
you inherit from, as a generic argument
So you'd inherit from IdentityDbContext<ApplicationUser>
No it didn't work
By the way this is the code
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.