2012-03-21 41 views

回答

0

你想要||運營商,就像您在if語句中使用。

+0

的||不起作用:s – 2012-03-21 15:20:42

+0

||操作員似乎不工作 – 2012-03-21 15:59:21

+0

您是否收到任何特定的錯誤? – mgnoonan 2012-03-21 16:48:49

1

差不多你添加另一個條件定期C#中,通過使用||(OR)運算的方式相同。

var TheQuery = db.Conventions.Where(p => 
     p.Participants.Select(q => q.intituleParticipant).Contains(s) || 
     othercondition); 
1

把這個在您的查詢||

或 - > ||

var TheQuery = db.Conventions.Where(p => p.Participants.Select(q => q.intituleParticipant).Contains(s) || other conditions); 
相關問題