I want to convert it into entity framework Lambda Expression, but i'm not getting proper syntax...

What will be the Entity Framework Lambda Expression of this SQL query:

Select max(Number) from table1 WHERE Date > '2014-01-04'
有帮助吗?

解决方案

You could try this:

entities.table1.Where(x=>x.Date>(new DateTime(2014,1,4))).Max(x=>x.Number)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top