ASP.NET Core Identity does not inject UserManager<ApplicationUser>
问题 I've got an older asp.net core identity database, and I want to map a new project (a web api) to it. Just for the test, I copied the Models folder, and the ApplicationUser file from the previous project (ApplicationUser simply inherits from IdentityUser, no changes whatsoever) - doing DB first seems to be a bad idea. I'm registering Identity in ConfigureServices (but I'm not adding it to the pipeline since my only intention is to use the UserStore) services.AddIdentity<ApplicationUser,