I had the same problem and I found that I had not called
base.OnModelCreating(modelBuilder);
in my DbModel
More Related Contents:
- How to get current user, and how to use User class in MVC5?
- Why is Asp.Net Identity IdentityDbContext a Black-Box?
- ASP.NET Identity – Multiple object sets per type are not supported
- The entity type ApplicationUser is not part of the model for the current context
- Get UserID of logged-in user in Asp.Net MVC 5
- “Context cannot be used while the model is being created” exception with ASP.NET Identity
- One DbContext per web request… why?
- ASP.NET Identity’s default Password Hasher – How does it work and is it secure?
- Unauthorised webapi call returning login page rather than 401
- Configure the authorization server endpoint
- Entity Framework Refresh context? [closed]
- How to add claims in ASP.NET Identity
- IdentityServer4 Role Based Authorization for Web API with ASP.NET Core Identity
- Do I need a Global.asax.cs file at all if I’m using an OWIN Startup.cs class and move all configuration there?
- Dynamic MySQL database connection for Entity Framework 6
- Entity Framework – retrieve ID before ‘SaveChanges’ inside a transaction
- SQL Injection attack prevention: where do I start
- How do you login/authenticate a user with Asp.Net MVC5 RTM bits using AspNet.Identity?
- get date part only from datetime value using entity framework
- Setting the default value of a DateTime Property to DateTime.Now inside the System.ComponentModel Default Value Attrbute
- Log Queries executed by Entity Framework DbContext
- How to I apply filter while paginating in Asp.net MVC and entity Framework?
- How to add Web API to an existing ASP.NET MVC (5) Web Application project?
- Async PartialView causes “HttpServerUtility.Execute blocked…” exception
- How to return a PDF from a Web API application
- How require authorization within whole ASP .NET MVC application
- Unable to find the requested .Net Framework Data Provider. It may not be installed
- Seed Entities AND Users, Roles?
- Get the current user, within an ApiController action, without passing the userID as a parameter
- The entity type ‘IdentityUserLogin’ requires a primary key to be defined [duplicate]