DbExpressionBuilder.Invoke Method (DbLambda, IEnumerable<DbExpression>)

.NET Framework (current version)
 

Creates a new DbLambdaExpression representing the application of the specified Lambda function to the given arguments.

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

public static DbLambdaExpression Invoke(
	this DbLambda lambda,
	IEnumerable<DbExpression> arguments
)

Parameters

lambda
Type: System.Data.Common.CommandTrees.DbLambda

A DbLambda instance representing the Lambda function to apply.

arguments
Type: System.Collections.Generic.IEnumerable<DbExpression>

A list of expressions that provide the arguments.

Return Value

Type: System.Data.Common.CommandTrees.DbLambdaExpression

A new DbLambdaExpression representing the Lambda function application.

Exception Condition
ArgumentNullException

lambda or arguments is null.

ArgumentException

The count of arguments does not equal the number of variables declared by lambda, or arguments contains an expression that has a result type that is not equal or promotable to the corresponding variable type.

.NET Framework
Available since 4.5
Return to top
Show: