You do have two DbSet
s` of the same type.
IdentityDbContext<T>
itself contains Users
property declared as:
public DbSet<T> Users { get; set; }
You’re declaring second one in your class.
More Related Contents:
- Why is Asp.Net Identity IdentityDbContext a Black-Box?
- How to get current user, and how to use User class in MVC5?
- The entity type ApplicationUser is not part of the model for the current context
- User in Entity type MVC5 EF6
- 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
- c# asp.net delete last comma [closed]
- ASP.NET MVC – Attaching an entity of type ‘MODELNAME’ failed because another entity of the same type already has the same primary key value
- Sharing sessions across applications using the ASP.NET Session State Service
- Making a Simple Ajax call to controller in asp.net mvc
- Entity Framework Timeouts
- ASP.NET Identity DbContext confusion
- MVC which submit button has been pressed
- Difference between MVC 5 Project and Web Api Project
- The instance of entity type cannot be tracked because another instance of this type with the same key is already being tracked
- How do I dispose my filestream when implementing a file download in ASP.NET?
- C# mvc 3 using selectlist with selected value in view
- Project builds but can’t publish
- How to implement custom authentication in ASP.NET MVC 5
- Questions about Entity Framework Context Lifetime
- How do I setup multiple auth schemes in ASP.NET Core 2.0?
- TempData null in asp.net core
- onchange event for html.dropdownlist
- Set database timeout in Entity Framework
- Register IAuthenticationManager with Simple Injector
- How to create custom additional fields in UserProfile in MVC4
- WCF Service or Web API [closed]
- MVC 4 – Many-to-Many relation and checkboxes
- Unable to resolve service for type ‘Microsoft.AspNetCore.Identity.UserManager` while attempting to activate ‘AuthController’
- Display string as html in asp.net mvc view