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


Type: System.Data.Common.CommandTrees.DbLambda

A DbLambda instance representing the Lambda function to apply.

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

lambda or arguments is null.


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