อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


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.

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression Invoke(this System.Data.Metadata.Edm.EdmFunction function, params System.Data.Common.CommandTrees.DbExpression[] arguments);

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

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Invoke(EdmFunction, IEnumerable<DbExpression>)

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

C#
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);

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

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Invoke(DbLambda, IEnumerable<DbExpression>)

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

C#
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);

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

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Invoke(DbLambda, DbExpression[])

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

C#
public static System.Data.Common.CommandTrees.DbLambdaExpression Invoke(this System.Data.Common.CommandTrees.DbLambda lambda, params System.Data.Common.CommandTrees.DbExpression[] arguments);

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

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1