[Archived] ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. Project moved to https://github.com/aspnet/AspNetCore
Works
1) New project 2.1 MVC with no auth
2) Scaffold identity and choose the plus button for the user class
The resulting code is expected because it refers to ApplicationUser
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> services.AddDefaultIdentity<ApplicationUser>()
Does not work
1) New project 2.1 MVC with no auth
2) Create a class ApplicationUser that derives from IdentityUser
public class ApplicationUser : IdentityUser
3) Scaffold identity and choose the dropdown button for the user class
The resulting code is unexpected because it refers to IdentityUser. ApplicationUseris totally ignored
public class ApplicationDbContext : IdentityDbContext<IdentityUser> services.AddDefaultIdentity<IdentityUser>()
Works 1) New project 2.1 MVC with no auth 2) Scaffold identity and choose the plus button for the user class
The resulting code is expected because it refers to
ApplicationUser
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
services.AddDefaultIdentity<ApplicationUser>()
Does not work 1) New project 2.1 MVC with no auth 2) Create a class ApplicationUser that derives from IdentityUser
public class ApplicationUser : IdentityUser
3) Scaffold identity and choose the dropdown button for the user classThe resulting code is unexpected because it refers to
IdentityUser
.ApplicationUser
is totally ignoredpublic class ApplicationDbContext : IdentityDbContext<IdentityUser>
services.AddDefaultIdentity<IdentityUser>()
Bug?