Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

DbLambda.Create Method (TypeUsage, TypeUsage, Func<DbExpression, DbExpression, DbExpression>)

.NET Framework 4.6 and 4.5

Creates a new DbLambda with arguments of the specified types, as defined by the specified function.

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

public static DbLambda Create(
	TypeUsage argument1Type,
	TypeUsage argument2Type,
	Func<DbExpression, DbExpression, DbExpression> lambdaFunction
)

Parameters

argument1Type
Type: System.Data.Metadata.Edm.TypeUsage

A TypeUsage that defines the EDM type of the first argument to the Lambda function

argument2Type
Type: System.Data.Metadata.Edm.TypeUsage

A TypeUsage that defines the EDM type of the second argument to the Lambda function

lambdaFunction
Type: System.Func<DbExpression, DbExpression, DbExpression>

A function that defines the logic of the Lambda function as a DbExpression

Return Value

Type: System.Data.Common.CommandTrees.DbLambda
A new DbLambda that describes an inline Lambda function with the specified body and formal parameters.

ExceptionCondition
ArgumentNullException

argument1Typeargument2TypelambdaFunction

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft