linq to entities query for count and group by with join on 2 tables
- by samsur
I need a linq to entities query/ lambda expression for the following statement. Any help is greatly appreciated
SELECT
at.Name,
Count(a.AssetTypeId) as CountofAssets,
at.AssetTypeId
FROM
AssetTypes at, Assets a
WHERE
at.AssetClassId = 7
GROUP BY
at.Name,at.AssetTypeID