Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

convert SQL to linq

$
0
0

Hi,

I need a help guys,

I need the following query into linq query. 

SELECT [t0].id,
       sum([t1].[total_Statements]) AS [value], 
       sum( [t1].[totalpage] - [t1].[total_Statements]) AS [value2], 
       sum( [t1].[total_bad]) AS [value3],
       [t0].[biller_id]
	FROM [dbo].[upload_t] AS [t0]
	left JOIN [dbo].[printer] AS [t1] ON ((CONVERT(NVarChar,[t0].[id])) = [t1].bill]) 
	where (([t0].[biller_id] = 10)
 
 group by [t0].[biller_id],[t0].id,[t0].[date]
 
ORDER BY [t0].[date] DESC

What will be the linq query. 


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>