Iam having a serious problems with Linq. I have simple sql query:
select
intMiesiac,
intRok,
Sum(intIn) as 'In',
Sum(intOut) as 'Out'
from dbo.GlobalDane
where intRampNr=1
group by intMiesiac, intRok
I query for sum of in and out for specified intRampNr and want it to be grouped by Month and Year.
Tried very various queries in linq but when i put result of query into datasource of gridview and then bind datasource it fails or it shows me only empty cells.
How I can create same statment in linq under C#?
Something like the following will do it for you: