Assuming i have a base entity class:
public abstract partial class Person
{
public Person()
{
}
public string FirstName { get; set; }
public string LastName { get; set; }
}
and i have multiple entities that inherit from that entity e.g:
public partial class Customer : Person
{
public Customer()
{
}
public int CustomerStatusId { get; set; }
public string AccountNumber { get; set; }
}
and a few more entities that inherit from the Person
class.
is there a way i can get all the Entities class names that inherit from the Person
class?
i would like to display those in a select
box, to create a generic AddUser
method.