curTime = SalesDB.ImageTable.Max(s => s.AddTime); 上面的代码获取到数据库中AddTime字段的最大值。 转载于:https://blog.51cto.com/wzwyc/1587374