. Advertisement .
..3..
. Advertisement .
..4..
I got the error message below: the entity type applicationuser is not part of the model for the current context.
I’m very confused because this error took me a lot of time to find a solution but it hasn’t worked. What does the above error mean? How can I handle it quickly.
Please help me. Thanks in advance.
The cause:
You’ll probably run into this issue if you’re utilizing the connection string created while importing the EDMX file using in:base(“EDMXConnString”).
Solution: By establishing a common connection string that referred to the database containing the ASP.NET Identity tables, you were able to resolve the error: the entity type applicationuser is not part of the model for the current context.
It then will work when you use the connection string in
:base
.To ensure that a context instanciation is not missed, the code should be as follows: