Hi Delta_Rich,
If you are simply looking for the highest UpdateTracker value, try:
var LastUpdated = CriticalEvents.Max(CriticalEvent => CriticalEvent.UpdateTracker);
Or if you want to retrieve the CriticalEvent entity with the highest UpdateTracker value, then try:
var LastUpdated = CriticalEvents.Where(CriticalEvent => CriticalEvent.UpdateTracker == CriticalEvents.Max(cEvent => cEvent.UpdateTracker)).First();
Regards,
Silvio.
Edited by sbelini - 20-Oct-2011 at 10:34am