views:

58

answers:

1

Hello All:

How can we aggregate function (MIN, MAX, COUNT etc) in Entity framework 3.5 in .net.

Thanks Ashwani

+1  A: 

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.

Craig Stuntz