compare previous record column value with current record column value in c# linq
my linq query is as below :
var list = (from v in db.VehicleLocation
where v.VehicleId == vehicleId
select new VehicleLocationModel
{
Id = v.Id,
Location = v.Location,
DateTimestamp = v.DateTimestamp,
DiffTimestamp = v.DateTimestamp - previoustimestamp
}).OrderBy(x => x.DateTimestamp).ToList();
please help me...