aspnet / Identity

[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
Apache License 2.0
1.96k stars 870 forks source link

Scaffold Identity omits custom ApplicationUser #1886

Closed Ponant closed 6 years ago

Ponant commented 6 years ago

Works 1) New project 2.1 MVC with no auth 2) Scaffold identity and choose the plus button for the user class

scaffoldidentity21

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

scaffoldidentity21bug

The resulting code is unexpected because it refers to IdentityUser. ApplicationUseris totally ignored

public class ApplicationDbContext : IdentityDbContext<IdentityUser> services.AddDefaultIdentity<IdentityUser>()

Bug?

blowdart commented 6 years ago

This issue was moved to aspnet/Scaffolding#839