I have written a LINQ query with ‘or’ condition and ‘and’ but its not working well.
from x in db.fotoes.Where(x => x.uid == NewsId &&
x.ukat == 'fukat1' || x.ukat == 'fukat2')
i cant figure out why its not working,can anybody help me to fix this problem?
Just try like this, you need to use parentheses to group your conditions: