I have a Person
entity class which is inherit from my BaseEntity
. The project structure is on that base entity class so i cannot change or remove it.
I want to implement another base class IdentityUser
coming from Microsoft.AspNetCore.Identity
But this is getting error: Class 'Person' cannot have multiple base classes: 'BaseEntity' and 'IdentityUser'
Is there any way to solve this ?
public class Person : BaseEntity, IdentityUser
{
public int GroupId { get; set; }
public string CardNumber { get; set; }
public int PrivilegeId { get; set; }
public string Name { get; set; }
public string MiddleName { get; set; }
public string Surname { get; set; }
public string Password { get; set; }
........
........
........
}