Need to make Sum IIF query in linq vb.net -


i new linq , need query linq in vb.net data table

every column setted var char if useful query:

select sum(iif([columnnametocountvalues] in      ('value1','value2','value3')       , [employeid] '[idvalue]'       , [project] '[projectname]',1,0))      total [datatablename]; 

this query should return integer.

where error , question have tried? have said "this query should return integer." may output got error, isn't it? so, why not change database column data type int


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -