DbExpressionBuilder.Invoke Method

 

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

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticInvoke(DbLambda, DbExpression[])

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

System_CAPS_pubmethodSystem_CAPS_staticInvoke(DbLambda, IEnumerable<DbExpression>)

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

System_CAPS_pubmethodSystem_CAPS_staticInvoke(EdmFunction, DbExpression[])

Creates a new DbFunctionExpression representing the invocation of the specified function with the given arguments.

System_CAPS_pubmethodSystem_CAPS_staticInvoke(EdmFunction, IEnumerable<DbExpression>)

Creates a new DbFunctionExpression representing the invocation of the specified function with the given arguments.


DbExpressionBuilder.Invoke Method (DbLambda, DbExpression[])

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

public static DbLambdaExpression Invoke(
	this DbLambda lambda,
	params DbExpression[] arguments
)

Parameters

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

A DbLambda instance representing the Lambda function to apply.

arguments
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression[]

Expressions that provide the arguments.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression

A new DbLambdaExpression representing the Lambda function application.

Exception Condition
ArgumentNullException

lambda is null, or arguments is null or contains 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.


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

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

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

Parameters

lambda
Type: System.Data.Entity.Core.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.Entity.Core.Common.CommandTrees.DbLambdaExpression

A new DbLambdaExpression representing the Lambda function application.

Exception Condition
ArgumentNullException

lambda is null, or arguments is null or contains 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.


DbExpressionBuilder.Invoke Method (EdmFunction, DbExpression[])

Creates a new DbFunctionExpression representing the invocation of the specified function with the given arguments.

public static DbFunctionExpression Invoke(
	this EdmFunction function,
	params DbExpression[] arguments
)

Parameters

function
Type: System.Data.Entity.Core.Metadata.Edm.EdmFunction

Metadata for the function to invoke.

arguments
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression[]

Expressions that provide the arguments to the function.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression

A new DbFunctionExpression representing the function invocation.

Exception Condition
ArgumentNullException

function is null, or arguments is null or contains null.

ArgumentException

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


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

Creates a new DbFunctionExpression representing the invocation of the specified function with the given arguments.

public static DbFunctionExpression Invoke(
	this EdmFunction function,
	IEnumerable<DbExpression> arguments
)

Parameters

function
Type: System.Data.Entity.Core.Metadata.Edm.EdmFunction

Metadata for the function to invoke.

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

A list of expressions that provide the arguments to the function.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression

A new DbFunctionExpression representing the function invocation.

Exception Condition
ArgumentNullException

function is null, or arguments is null or contains null.

ArgumentException

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