I need a LINQ to Entities query or lambda expression for the following statement.
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
Try this:
I hope you have foreign keys in your base and model graph is created properly.