I have a table, \'lasttraces\', with the following fields.
Id, AccountId, Version, DownloadNo, Date
The data looks like this:
Here is a simple way to do it
var lastPlayerControlCommand = this.ObjectContext.PlayerControlCommands .Where(c => c.PlayerID == player.ID) .OrderByDescending(t=>t.CreationTime) .FirstOrDefault();
Also have a look this great LINQ place - LINQ to SQL Samples