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
mer_nam hai bulla rakhta hu kula
ApplicationDbContext
mer_nam hai bulla rakhta hu kula
ApplicationUser
mer_nam hai bulla rakhta hu kula
picture of database
Angius
Angius2y ago
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>
mer_nam hai bulla rakhta hu kula
No it didn't work By the way this is the code
Accord
Accord2y ago
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.