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
.
精彩评论