var temp = db.UseVihicle.Where(x => x.Id == Id).Select(a => new { a.EmployeeId, a.VihicleId, a.StartTime, a.EndTime, a.Description, a.Destination, a.Cause, a.Status });
foreach (var x in temp)
{
x.EmployeeId = emp_id;
x.VihicleId = vih_id;
x.StartTime = DateTime.Parse(StartTime);
x.EndTime = DateTime.Parse(EndTime);
x.Destination = Destination;
x.Cause = Cause;
x.Description = Description;
x.Status = 3;
}
db.SubmitChanges();
错误 X.CFJIEJDLKDFOECMLSLL