using System;
using Microsoft.AspNetCore.Identity;
namespace SC.BL.Domain
{
// Add profile data for application users by adding properties to the WebApp1User class
public class WebApp1User : IdentityUser
{
public string OwnerID { get; set; }
[PersonalData]
public string Name { get; set; }
[PersonalData]
public DateTime DOB { get; set; }
public UserStatus UserStatus { get; set; }
}
public enum UserStatus
{
Submitted,
Approved,
Rejected
}
}
在参考中找不到AspNetCore:使用Microsoft.AspNetCore.Identity 参见图片以获取更多详细信息image
答案 0 :(得分:0)
将以下PackageReference
添加到YourProject.csproj
文件并重建。问题应该消失,因为此元软件包包含用于 ASP.NET Core版本<= 2.2
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App"/>
.......
</ItemGroup>