SyntaxFix
Write A Post
Hire A Developer
Questions
If you want the whole record,here is a lambda way:
var q = _context .lasttraces .GroupBy(s => s.AccountId) .Select(s => s.OrderByDescending(x => x.Date).FirstOrDefault());