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