- Move the
ApplicationUser
definition to your DAL. - Inherit your
MyDbContext
fromIdentityDbContext<ApplicationUser>
orIdentityDbContext
- OnModelCreating – Provide the foreign key info.
- Pass
MyDbContext
while creating theUserManager<ApplicationUser>
More Related Contents:
- How to extend available properties of User.Identity
- Updating user data – ASP.NET Identity
- How to change type of id in Microsoft.AspNet.Identity.EntityFramework.IdentityUser
- Prevent multiple logins
- What is the advantage of using async with MVC5?
- How to access Facebook private information by using ASP.NET Identity (OWIN)?
- ExpireTimeSpan ignored after regenerateIdentity / validateInterval duration in MVC Identity (2.0.1)
- ASP.NET Core MVC: setting expiration of identity cookie
- ASP.NET (OWIN) Identity: How to get UserID from a Web API controller?
- how to implement ASP.NET Identity to an empty MVC project
- Get ExtraData from MVC5 framework OAuth/OWin identity provider with external auth provider
- MVC 5 Owin Facebook Auth results in Null Reference Exception
- There is already an object named ‘AspNetRoles’ in the database
- Registering Web API 2 external logins from multiple API clients with OWIN Identity
- Using Ajax.BeginForm with ASP.NET MVC 3 Razor
- How to simulate Server.Transfer in ASP.NET MVC?
- Where should I do Injection with Ninject 2+ (and how do I arrange my Modules?)
- Unity Inject dependencies into MVC filter class with parameters
- Asp.net MVC4: Authorize on both controller and action
- Combine ASP.Net MVC with WebForms
- Purpose of ActionName
- How to set ViewBag properties for all Views without using a base class for Controllers?
- ‘Microsoft.SqlServer.Types’ version 10 or higher could not be found on Azure
- Redirect / show view after generated file is dowloaded
- MVC Datatype Currency trigger numeric keypad
- Validation does not work when I use Validator.TryValidateObject
- How do I route a URL with a querystring in ASP.NET MVC?
- Is using ViewBag in MVC bad? [closed]
- Does Razor syntax provide a compelling advantage in UI markup?
- Unable to get windows authentication to work through local IIS