开发者

Aggregate functions in Entity framework 3.5

How can we aggregate function (MIN, MAX, COUNT etc开发者_运维问答) in Entity framework 3.5 in .net.

Thanks Ashwani


They're already there in the LINQ API. Just use them. E.g.:

var count = Context.People.Count();

...will get translated to a SQL COUNT.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜