我写了一个带有'或'条件和'和'的LINQ查询但是它运行不正常.
from x in db.fotoes.Where(x => x.uid == NewsId && x.ukat == 'fukat1' || x.ukat == 'fukat2')
我无法弄清楚为什么它不起作用,有人可以帮助我解决这个问题吗?
.net c# linq
.net ×1
c# ×1
linq ×1