Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Create Method (TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, Func(DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpressi
Collapse the table of content
Expand the table of content

DbLambda.Create Method (TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, TypeUsage, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, 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,
	TypeUsage argument3Type,
	TypeUsage argument4Type,
	TypeUsage argument5Type,
	TypeUsage argument6Type,
	TypeUsage argument7Type,
	TypeUsage argument8Type,
	TypeUsage argument9Type,
	Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

lambdaFunction
Type: System.Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, 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

argument1Typeargument2Typeargument3Typeargument4Typeargument5Typeargument6Typeargument7Typeargument8Typeargument9TypelambdaFunction

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft