1
我想根据字段获取最大记录,但Max()扩展返回给定类型。说这个:EF Max按值记录
o.Max(i => i.CreatedDate) // returns date
返回最大日期值;我想要返回记录本身,如:
o.Max(i => i.CreatedDate) // returns the record with the maximum condition
有没有一种方法可以做到这一点?
谢谢。