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