You cannot duplicate properties. After enetity / class should only have properties that are valid for this object.
If you want to call another table, then you must have a property that returns another object with a special foreign key.
In your case, I would have
public class Person { List<Appointment> _appointments; public List<Appointment> Appointments { get { if (_appointments == null) _appointments =
Hope this helps.
source share