DbExpressionBuilder.Filter Method (DbExpressionBinding, DbExpression)

.NET Framework (current version)
 

Creates a new DbFilterExpression that filters the elements in the given input set using the specified predicate.

Namespace:   System.Data.Common.CommandTrees.ExpressionBuilder
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbFilterExpression Filter(
	this DbExpressionBinding input,
	DbExpression predicate
)

Parameters

input
Type: System.Data.Common.CommandTrees.DbExpressionBinding

An expression binding that specifies the input set.

predicate
Type: System.Data.Common.CommandTrees.DbExpression

An expression representing a predicate to evaluate for each member of the input set.

Return Value

Type: System.Data.Common.CommandTrees.DbFilterExpression

A new DbFilterExpression that produces the filtered set.

Exception Condition
ArgumentNullException

input or predicate is null.

ArgumentException

predicate does not have a Boolean result type.

.NET Framework
Available since 4.5
Return to top
Show: