I have my user using asp.net identity for authentication as usual I have my class implementing IUser
public class usuario: IUser
{
public User(){...}
public User(string userName) (){...}
public string Id { get; set; }
public string UserName { get; set; }
public string PasswordHash { get; set; }
}
Okay, I also have my Person class
Where all my registrations (customer, vendor, vendor, etc.) inherit from Person.
My question is:
Would it be a bad practice for me to implement IUser in a person inherit class?
Public class usuario: Pessoa,IUser {
}
Or just have a class to connect both entities, doing so, the PERSON Y has a user in the system
public class UsuarioPessoa {
public Pessoa Pessoa {get;set;}
public usuario usuario {get;set;}
}
At first a Salesperson who inherits from Person, I will have a user to log in to the system. and only 1.