DbExpressionBuilder.Invoke Method
Creates a new DbLambdaExpression representing the application of the specified Lambda function to the given arguments.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | Invoke(DbLambda, DbExpression[]) | Creates a new DbLambdaExpression representing the application of the specified Lambda function to the given arguments. |
![]() ![]() | Invoke(DbLambda, IEnumerable<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. |
![]() ![]() | Invoke(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.DbLambdaExpressionA 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.DbLambdaExpressionA 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.DbFunctionExpressionA 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.DbFunctionExpressionA 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. |