Esempio n. 1
0
        public static IEnumerable <ActivityExecutionPerformance> GetByActivityExecutionId(DataLogContext dlc, Guid?activityExecutionId)
        {
            IEnumerable <ActivityExecutionPerformance> aep = (from td in dlc.ActivityExecutionPerformances where td.ActivityExecutionId == activityExecutionId select td).ToList();

            return(aep);
        }
Esempio n. 2
0
 public static ActivityExecutionAssetUsage GetByActivityExecutionId(DataLogContext dlc, Guid activityExecutionId) => (from ae in dlc.ActivityExecutionAssetUsages where ae.ActivityExecutionId.Equals(activityExecutionId) select ae).FirstOrDefault();
Esempio n. 3
0
 public static List <string> GetProductsBySessionId(DataLogContext dlc, string sessionId) => (from sd in dlc.SessionDevices where sd.SessionId.Equals(sessionId) select sd.ProductName).Distinct().ToList();
        /// <summary>
        /// Gets the ActivityExecutionDetail List by the activity execution identifier.
        /// </summary>
        /// <param name="dlc">The DataLog Context.</param>
        /// <param name="activityExecutionId">The activity execution identifier.</param>
        /// <returns>ActivityExecutionDetail List</returns>
        public static IEnumerable <ActivityExecutionDetail> GetByActivityExecutionId(DataLogContext dlc, Guid?activityExecutionId)
        {
            IEnumerable <ActivityExecutionDetail> aedList = (from aed in dlc.ActivityExecutionDetails where aed.ActivityExecutionId == activityExecutionId select aed).ToList();

            return(aedList);
        }
Esempio n. 5
0
 public static SessionDevice GetBySessionDeviceId(DataLogContext dlc, string sessionId, string deviceId) => (from sd in dlc.SessionDevices where sd.SessionId.Equals(sessionId) && sd.DeviceId.Equals(deviceId) select sd).FirstOrDefault();
Esempio n. 6
0
 public static TriageData GetTriageDataById(DataLogContext dl, Guid triageDataId) => (from td in dl.TriageDatas where td.TriageDataId.Equals(triageDataId) select td).FirstOrDefault();
Esempio n. 7
0
 public static int GetCountBySessionId(DataLogContext dlc, string sessionId) => (from td in dlc.TriageDatas where td.SessionId.Equals(sessionId) select td).Count();
Esempio n. 8
0
 public static IEnumerable <TriageData> GetTriageDataBySessionId(DataLogContext dlc, string sessionId) => (from td in dlc.TriageDatas where td.SessionId.Equals(sessionId) select td).Take(3000).ToList();
Esempio n. 9
0
 public static List <string> SessionIds(DataLogContext dlc, DateTime dtStart, DateTime dtEnd) => (from td in dlc.TriageDatas where td.TriageDateTime >= dtStart && td.TriageDateTime <= dtEnd select td.SessionId).Distinct().ToList();