Class PredicateBuilder
Inheritance
object
PredicateBuilder
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Core.dll
Syntax
public static class PredicateBuilder
Methods
And<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)
Declaration
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
expr1 |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
expr2 |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
|
Type Parameters
Extend<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>, PredicateOperator)
Declaration
public static Expression<Func<T, bool>> Extend<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second, PredicateOperator @operator = PredicateOperator.Or)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
first |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
second |
|
PredicateOperator |
operator |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
|
Type Parameters
Extend<T>(ExpressionStarter<T>, Expression<Func<T, bool>>, PredicateOperator)
Declaration
public static Expression<Func<T, bool>> Extend<T>(this ExpressionStarter<T> first, Expression<Func<T, bool>> second, PredicateOperator @operator = PredicateOperator.Or)
Parameters
Returns
Type |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
|
Type Parameters
New<T>(bool)
Declaration
public static ExpressionStarter<T> New<T>(bool defaultExpression)
Parameters
Type |
Name |
Description |
bool |
defaultExpression |
|
Returns
Type Parameters
New<T>(Expression<Func<T, bool>>?)
Declaration
public static ExpressionStarter<T> New<T>(Expression<Func<T, bool>>? expr = null)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
expr |
|
Returns
Type Parameters
Or<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)
Declaration
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
expr1 |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
expr2 |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
|
Type Parameters