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