How can I do this with LINQ?

Posted by Liam on Stack Overflow See other posts from Stack Overflow or by Liam
Published on 2010-05-10T14:20:49Z Indexed on 2010/05/10 14:24 UTC
Read the original article Hit count: 597

Filed under:
|
|
|

All I'm after doing is this:

SELECT CallTypeID, Count(CallTypeID) as NumberOfCalls
FROM [Helpdesk_HR].[dbo].[CallHeader]
WHERE CallHeader.DateOpened <= GETDATE()-7
GROUP BY CallTypeID

in LINQ. But I can't work out a way of doing it and getting it to work. I would use Linqer, but my company won't pay for it at present.

Any help is greatly appreciated as I'm sure the answer is obvious. It's just been one of those days today.

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about sql-to-linq