我有用户模型,如下所示: public class User : IdentityUser<Guid> public string FullName { get;set; } } 现在我需要为user使用一些方法,这些方法是为基本实体制作的,所以我想添加基本实体,但它不起作用。public class User : IdentityUser<Guid>,
我最近更新了我的应用程序接口以支持Asp.NetCore.Identity。因此,我不得不删除User类中的许多字段,因为它们已经存在于User继承的IdentityUser类中。在我以前的User类中,我使用DataAnnotations验证了字符串长度和电子邮件。[Required] public