开发者

Aggregate functions in Entity framework 3.5

开发者 https://www.devze.com 2022-12-29 11:35 出处:网络
How can we aggregate function (MIN, MAX, COUNT etc开发者_运维问答) in Entity framework 3.5 in .net.

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

精彩评论

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

关注公众号