Error Unable to materialize entity instance of type 'IdentityUser'. No discriminators matched the

MHBRHKmer_nam hai bulla rakhta hu kula11/23/2022
Error: Unable to materialize entity instance of type 'IdentityUser'. No discriminators matched the discriminator value ''
Image
MHBRHKmer_nam hai bulla rakhta hu kula11/23/2022
ApplicationDbContext
MHBRHKmer_nam hai bulla rakhta hu kula11/23/2022
ApplicationUser
Image
MHBRHKmer_nam hai bulla rakhta hu kula11/23/2022
picture of database
Image
AAngius11/23/2022
I believe you need to pass your custom user type to the IdentityDbContext you inherit from, as a generic argument
AAngius11/23/2022
So you'd inherit from IdentityDbContext<ApplicationUser>
MHBRHKmer_nam hai bulla rakhta hu kula11/23/2022
No it didn't work
MHBRHKmer_nam hai bulla rakhta hu kula11/23/2022
By the way this is the code
AAccord11/24/2022
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.