Class ExpressionFuncExtender
Represents the extender for Expression[Func[T, bool]] type. This is part of the solution which solves the expression parameter problem when going to Entity Framework. For more information about this solution please refer to http://blogs.msdn.com/b/meek/archive/2008/05/02/linq-to-entities-combining-predicates.aspx.
Inheritance
System.Object
ExpressionFuncExtender
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public static class ExpressionFuncExtender : object
Methods
And<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Combines two given expressions by using the AND semantics.
Declaration
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, System.Boolean>> | first | The first part of the expression. |
Expression<Func<T, System.Boolean>> | second | The second part of the expression. |
Returns
Type | Description |
---|---|
Expression<Func<T, System.Boolean>> | The combined expression. |
Type Parameters
Name | Description |
---|---|
T | The type of the object. |
Or<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Combines two given expressions by using the OR semantics.
Declaration
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, System.Boolean>> | first | The first part of the expression. |
Expression<Func<T, System.Boolean>> | second | The second part of the expression. |
Returns
Type | Description |
---|---|
Expression<Func<T, System.Boolean>> | The combined expression. |
Type Parameters
Name | Description |
---|---|
T | The type of the object. |