src/Shared/EntityFramework.Community.Shared/QueryResultFilter/QueryResultFilterManager.cs
/// <summary>
/// Create a new QueryResultFilter that will filter the entity using a predicate.
/// </summary>
/// <typeparam name="T">Generic type parameter.</typeparam>
/// <param name="id">The filter id.</param>
/// <param name="filter">SThe filter predicate.</param>
/// <returns>A QueryResultFilter&lt;T&gt;</returns>
Create a new QueryResultFilter that will filter the entity using a predicate.
Create a new QueryResultFilter that will filter the entity using a predicate .
public QueryResultFilter<T> Filter<T>(string id, Func<T, bool> filter)
        {
            var resultFilter = new QueryResultFilter<T>(this, filter);
            Filters.Add(resultFilter);
            return resultFilter;
        }
public QueryResultFilter < T > Filter < T > ( string id , Func < T , bool > filter ) { var resultFilter = new QueryResultFilter < T > ( this , filter ) ; Filters . Add ( resultFilter ) ; return resultFilter ; }
Create a new QueryResultFilter that will filter the entity using a predicate.
Create a new QueryResultFilter that will filter the entity using a predicate .
None
id
string
The filter id.
The filter id .
filter
Func<T, bool>
SThe filter predicate.
SThe filter predicate .
typeparam
Generic type parameter.
Generic type parameter .