Muokkaa

Jaa


DbExpressionBuilder.Invoke Method

Definition

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

Overloads

Invoke(EdmFunction, DbExpression[])

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

Invoke(EdmFunction, IEnumerable<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.

Invoke(DbLambda, DbExpression[])

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

Invoke(EdmFunction, DbExpression[])

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Invoke(System::Data::Metadata::Edm::EdmFunction ^ function, ... cli::array <System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbFunctionExpression Invoke (this System.Data.Metadata.Edm.EdmFunction function, params System.Data.Common.CommandTrees.DbExpression[] arguments);
static member Invoke : System.Data.Metadata.Edm.EdmFunction * System.Data.Common.CommandTrees.DbExpression[] -> System.Data.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

Invoke(EdmFunction, IEnumerable<DbExpression>)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Invoke(System::Data::Metadata::Edm::EdmFunction ^ function, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbFunctionExpression Invoke (this System.Data.Metadata.Edm.EdmFunction function, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> arguments);
static member Invoke : System.Data.Metadata.Edm.EdmFunction * seq<System.Data.Common.CommandTrees.DbExpression> -> System.Data.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(DbLambda, IEnumerable<DbExpression>)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLambdaExpression ^ Invoke(System::Data::Common::CommandTrees::DbLambda ^ lambda, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbLambdaExpression Invoke (this System.Data.Common.CommandTrees.DbLambda lambda, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> arguments);
static member Invoke : System.Data.Common.CommandTrees.DbLambda * seq<System.Data.Common.CommandTrees.DbExpression> -> System.Data.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 DbLambdaExpression 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:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLambdaExpression ^ Invoke(System::Data::Common::CommandTrees::DbLambda ^ lambda, ... cli::array <System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbLambdaExpression Invoke (this System.Data.Common.CommandTrees.DbLambda lambda, params System.Data.Common.CommandTrees.DbExpression[] arguments);
static member Invoke : System.Data.Common.CommandTrees.DbLambda * System.Data.Common.CommandTrees.DbExpression[] -> System.Data.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 DbLambdaExpression 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