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

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -