score:3
Accepted answer
public virtual ienumerable<t> unexportedtosun(expression<func<t, bool>> predicate)
{
var query = getiqueryable();
query = query.where(x => x.sunexportdate == null);
query = query.where(predicate);
return query.tolist();
}
Source: stackoverflow.com
Related Query
- How can I incorporate an Expression<Func<T, TPropertyType>> into my IQueryable?
- How can I condense the following Linq query into one IQueryable
- How can I convert IQueryable expression object into LINQ expression?
- How can I split an IEnumerable<String> into groups of IEnumerable<string>
- How can I tell if an IQueryable is an IOrderedQueryable?
- How can I convert this SQL Query into LINQ (OVER (PARTITION BY Date))
- How can I use LINQ to project this parent and children object model into a flat, single object?
- How can I combine several Expressions into a fast method?
- How can I cast a List into a type which inherits from List<T>?
- How can I combine this code into one or two LINQ queries?
- How can I insert an XElement into an existing xml-file?
- How to create an IQueryable Web API that can pull data from several data sources?
- How can I split a List<T> into two lists, one containing all duplicate values and the other containing the remainder?
- How can I read a tab delimited file into a multidimensional array using Linq?
- How can I test that my Linq IQueryable has executed
- How can I turn this 12-line method into a 1-line LINQ expression?
- How can I combine .Select from two LINQ expressions into one?
- how can i page into my list using linq
- How can I concatenate all the column values in a row, and then concatenate all rows in a DataTable into a single string?
- How can I load the following XML using LINQ-to-XML into a dictionary?
- Using LINQ with MVC, how can I include multiple parameters into a where clause?
- How can I see the parameters of a IQueryable expression
- How can I organize this data into the objects I want with LINQ?
- How can I get totals for more than one column in a list and put this into an object using LINQ?
- How can I intercept elements in an IQueryable regardless of how many transforms are applied?
- How can I combine two Entity Framework calls into one?
- How can I turn a lambda expression specifying a property into an asp.net mvc compatible 'name' string representing the same?
- How can I convert a string[] into a dictionary<int, string> using a separate int[] as the key set?
- How can I read an XML file properly into a collection when the XML has a specific root element name?
- How can I convert string into int without enumerating a query
More Query from same tag
- Compare two lists of custom objects by a specified method C#
- Orderby syntax ASC
- binding an Expression<Func> selector to a linq query
- List<T> add to T when id match
- Read Csv using LINQ
- Linq distinct operation
- Join two lists using linq queries - C#
- query a list of dynamic objects for a FirstOrDefault
- NHibernate 3 - extending Linq provider BaseHqlGeneratorForMethod.BuildHql problem
- LINQ to Entities GroupBy, OrderByDescending, FirstOrDefault when
- Correct syntax to define an IQueryable<TSource>.OrderBy( ) like method
- How to get all the values from an SQL Query C#
- Merge N amount of DataTables while summing one of the columns
- Adding where clause to nested Linq selects
- Get 3 Random elements and 1 preset element from HashSet
- Connection string in WCF with LINQ, C#, VS2008
- how to return all not FirstOrDefault in MVC controller LINQ
- Group array of string arrays with LINQ
- Substring of a DateTime with Linq to Sql extensions
- How much record can linq load when result stored in array?
- Dynamic Linq nested Select on collection property
- get word frequency (count) as property in Linq Object using Regex
- LINQ select distinct items and subitems
- How to convert hierarchical data from a DataTable to JSON
- Multiple Column Check in Linq
- Grouping records using LINQ method syntax
- Compiling Error with LINQ Sorting Code Using List<T>
- Why does Resharper suggest that I simplify "not any equal" to "all not equal"?
- How to serialize to xml using Linq
- Using Linq to do: Compile a list of all lists within a list of objects