Linq to Sql statement for multiple aggregate values in single expression

Posted by Jeff Langston on Stack Overflow See other posts from Stack Overflow or by Jeff Langston
Published on 2010-05-07T15:14:46Z Indexed on 2010/05/07 15:18 UTC
Read the original article Hit count: 231

Filed under:
|

How would I write a linq to sql statement for the following tsql?

select count(*), sum(Amount), avg(Amount), min(Amount), max(Amount) from TableName

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-sql