在ASP.NET Core 2.2中,IdentityUser模型位于Microsoft.AspNetCore.Identity命名空间中的IdentityUser
要解决此问题,请按照以下步骤操作:
using Microsoft.AspNetCore.Identity;
public class ApplicationUser : IdentityUser
{
// custom properties and methods
}
using Microsoft.AspNetCore.Identity;
public class ApplicationDbContext : IdentityDbContext
{
// DbContext code
}
通过执行上述步骤,您应该能够解决在ASP.NET Core 2.2中找不到IdentityUser模型的问题。