Share via


DbExpressionBuilder.Invoke Method

Definition

Overloads

Invoke(DbLambda, IEnumerable<DbExpression>)

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

Invoke(DbLambda, DbExpression[])

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

Invoke(EdmFunction, IEnumerable<DbExpression>)

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

Invoke(EdmFunction, DbExpression[])

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

Invoke(DbLambda, IEnumerable<DbExpression>)

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

public static System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression Invoke (this System.Data.Entity.Core.Common.CommandTrees.DbLambda lambda, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbExpression> arguments);
static member Invoke : System.Data.Entity.Core.Common.CommandTrees.DbLambda * seq<System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression
<Extension()>
Public Function Invoke (lambda As DbLambda, arguments As IEnumerable(Of DbExpression)) As DbLambdaExpression

Parameters

lambda
DbLambda

A DbLambda instance representing the Lambda function to apply.

arguments
IEnumerable<DbExpression>

A list of expressions that provide the arguments.

Returns

A new Expression representing the Lambda function application.

Exceptions

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.

Applies to

Invoke(DbLambda, DbExpression[])

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

public static System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression Invoke (this System.Data.Entity.Core.Common.CommandTrees.DbLambda lambda, params System.Data.Entity.Core.Common.CommandTrees.DbExpression[] arguments);
static member Invoke : System.Data.Entity.Core.Common.CommandTrees.DbLambda * System.Data.Entity.Core.Common.CommandTrees.DbExpression[] -> System.Data.Entity.Core.Common.CommandTrees.DbLambdaExpression
<Extension()>
Public Function Invoke (lambda As DbLambda, ParamArray arguments As DbExpression()) As DbLambdaExpression

Parameters

lambda
DbLambda

A DbLambda instance representing the Lambda function to apply.

arguments
DbExpression[]

Expressions that provide the arguments.

Returns

A new expression representing the Lambda function application.

Exceptions

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.

Applies to

Invoke(EdmFunction, IEnumerable<DbExpression>)

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

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Invoke (this System.Data.Entity.Core.Metadata.Edm.EdmFunction function, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbExpression> arguments);
static member Invoke : System.Data.Entity.Core.Metadata.Edm.EdmFunction * seq<System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Invoke (function As EdmFunction, arguments As IEnumerable(Of DbExpression)) As DbFunctionExpression

Parameters

function
EdmFunction

Metadata for the function to invoke.

arguments
IEnumerable<DbExpression>

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

Returns

A new DbFunctionExpression representing the function invocation.

Exceptions

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

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

Applies to

Invoke(EdmFunction, DbExpression[])

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

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Invoke (this System.Data.Entity.Core.Metadata.Edm.EdmFunction function, params System.Data.Entity.Core.Common.CommandTrees.DbExpression[] arguments);
static member Invoke : System.Data.Entity.Core.Metadata.Edm.EdmFunction * System.Data.Entity.Core.Common.CommandTrees.DbExpression[] -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Invoke (function As EdmFunction, ParamArray arguments As DbExpression()) As DbFunctionExpression

Parameters

function
EdmFunction

Metadata for the function to invoke.

arguments
DbExpression[]

Expressions that provide the arguments to the function.

Returns

A new DbFunctionExpression representing the function invocation.

Exceptions

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

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

Applies to