Show / Hide Table of Contents

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()
Namespace: System.Linq
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
Expression<Func<T, bool>> expr1
Expression<Func<T, bool>> expr2
Returns
Type Description
Expression<Func<T, bool>>
Type Parameters
Name Description
T

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
Type Name Description
ExpressionStarter<T> first
Expression<Func<T, bool>> second
PredicateOperator operator
Returns
Type Description
Expression<Func<T, bool>>
Type Parameters
Name Description
T

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
Expression<Func<T, bool>> first
Expression<Func<T, bool>> second
PredicateOperator operator
Returns
Type Description
Expression<Func<T, bool>>
Type Parameters
Name Description
T

New<T>(bool)

Declaration
public static ExpressionStarter<T> New<T>(bool defaultExpression)
Parameters
Type Name Description
bool defaultExpression
Returns
Type Description
ExpressionStarter<T>
Type Parameters
Name Description
T

New<T>(Expression<Func<T, bool>>?)

Declaration
public static ExpressionStarter<T> New<T>(Expression<Func<T, bool>>? expr = null)
Parameters
Type Name Description
Expression<Func<T, bool>> expr
Returns
Type Description
ExpressionStarter<T>
Type Parameters
Name Description
T

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
Expression<Func<T, bool>> expr1
Expression<Func<T, bool>> expr2
Returns
Type Description
Expression<Func<T, bool>>
Type Parameters
Name Description
T
In this article
Back to top Powered by Volosoft