I want to get all WHERE entries (s.override == 1 OR (s.override == 2 AND s.approved == 1))
How can I do this with .Where x.subcontracts.Where(s ==> ??)
x.subcontracts.Where(s ==> ??)
Use standard C # binary operators:
x.subcontracts .Where(s => s.override == 1 || (s.override == 2 && s.approved == 1))
Here is the where clause you need:
x.subcontracts.Where(s => (s.override == 1) || (s.override == 2 && s.approved == 1))
Source: https://habr.com/ru/post/1749261/More articles:How to scroll one area of a page using an Android web browser? - androidactivate css transition using javascript - javascriptDisable CTRL + P in WPF DocumentViewer - c #Why can't IB see my IBAction? - iphoneZend Framework Form Element Validator - проверять поле, даже если оно не требуется - validationSQL Server 2005: update rows in specified order (e.g. ORDER BY)? - sql-serverHow to handle Client Disconnect with PollingDuplexHttpBinding - silverlightCSS centering text between two images - cssDoes the AjaxControlToolkit TabContainer ActiveTabChanged event fire twice when using the UpdatePanel and ToolkitScriptManager? - asp.netHow to create global context variables in JBoss? - javaAll Articles