Linq Equivalent.
This article has your answer I think.http://www.codeproject.com/Articles/38264/How-to-Create-T-SQL-CASE-Statements-With-LINQ-To-SHope this helpsLloyd SHeenLloyd Sheen
View ArticleLinq Equivalent.
Please try the below. I didn't verified this, please let me know if you face any problem:var salesResult = from SOH in Sales.SalesOrderHeader group SOH by new { SOH.[Year] } into yearData select new {...
View ArticleLinq Equivalent.
SELECT * FROM ( SELECT YEAR(OrderDate) [Year], CASE MONTH(OrderDate) WHEN 1 THEN 'January' WHEN 2 THEN 'February' WHEN 3 THEN 'March' WHEN 4 THEN 'April' WHEN 5 THEN...
View Article
More Pages to Explore .....