Esempio n. 1
0
 public static RunHistory IncludeRunHistoryDetail(this RunHistory runHistory, IRunHistoryDetailRepository RunHistoryDetailRepository)
 {
     if (runHistory.RunHistoryDetails != null)
     {
         return(runHistory);
     }
     runHistory.RunHistoryDetails = (RunHistoryDetailList)RunHistoryDetailRepository.GetDataByRunHistoryId(runHistory.Id);
     return(runHistory);
 }
Esempio n. 2
0
 public static RunHistory IncludeRunHistoryDetail(this RunHistory runHistory, IRunHistoryDetailRepository RunHistoryDetailRepository) 
 {
    if (runHistory.RunHistoryDetails != null) return  runHistory;   
          runHistory.RunHistoryDetails = (RunHistoryDetailList)RunHistoryDetailRepository.GetDataByRunHistoryId(runHistory.Id);
    return  runHistory;      
 }
Esempio n. 3
0
 public IQueryable <RunHistoryDetail> GetDataByRunHistoryId(Int64 runHistoryId)
 {
     return(_dbRepository.GetDataByRunHistoryId(runHistoryId).AsQueryable());
 }