public static Person Doctor(this Doctor obj, IDataContext db) { return(db.GetTable <Person>().Where(c => c.PersonID == obj.PersonID).FirstOrDefault()); }
public static IQueryable <Person> People(this Doctor obj, IDataContext db) { return(db.GetTable <Person>().Where(c => c.PersonID == obj.PersonID)); }