How to convert this SQL query to Linq to Entity query?

Posted by George on Stack Overflow See other posts from Stack Overflow or by George
Published on 2010-04-24T16:32:39Z Indexed on 2010/04/24 16:33 UTC
Read the original article Hit count: 229

Filed under:

Hi, could you help me please convert this SQL query to Linq to Entity query? Thank you

select distinct item, count(item) as count 
from TableName 
where ColumnName = @parameter and (ColumnName2 = @parameter2 OR ColumnName3 = @parameter3)
group by item  order by item asc

© Stack Overflow or respective owner

Related posts about linq-to-entities