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 ''
![](https://utfs.io/f/512f6c04-6b60-4ea7-9227-40afe5f212d3-1nq2cb.png)
6 Replies
ApplicationDbContext
ApplicationUser
![](https://utfs.io/f/6692df60-b0e7-4643-ae54-416cf661e1e8-1nq2cb.png)
picture of database
![](https://utfs.io/f/3cbd19e8-b841-4278-8abf-44694871cf68-1nq2cb.png)
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.