src/Shared/EntityFramework/Core/Common/CommandTrees/DbLambda.cs
/// <summary>
/// Creates a new <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLambda" /> with arguments of the specified types, as defined by the specified function.
/// </summary>
/// <returns>A new DbLambda that describes an inline Lambda function with the specified body and formal parameters.</returns>
/// <param name="argument1Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the first argument to the Lambda function
/// </param>
/// <param name="argument2Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the second argument to the Lambda function
/// </param>
/// <param name="argument3Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the third argument to the Lambda function
/// </param>
/// <param name="argument4Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the fourth argument to the Lambda function
/// </param>
/// <param name="argument5Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the fifth argument to the Lambda function
/// </param>
/// <param name="argument6Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the sixth argument to the Lambda function
/// </param>
/// <param name="argument7Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the seventh argument to the Lambda function
/// </param>
/// <param name="argument8Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the eighth argument to the Lambda function
/// </param>
/// <param name="argument9Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the ninth argument to the Lambda function
/// </param>
/// <param name="argument10Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the tenth argument to the Lambda function
/// </param>
/// <param name="argument11Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the eleventh argument to the Lambda function
/// </param>
/// <param name="argument12Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the twelfth argument to the Lambda function
/// </param>
/// <param name="argument13Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the thirteenth argument to the Lambda function
/// </param>
/// <param name="argument14Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the fourteenth argument to the Lambda function
/// </param>
/// <param name="lambdaFunction">
/// A function that defines the logic of the Lambda function as a
/// <see
///     cref="T:System.Data.Entity.Core.Common.CommandTrees.DbExpression" />
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="argument1Type" />
/// is null,
/// <paramref name="argument2Type" />
/// is null,
/// <paramref name="argument3Type" />
/// is null,
/// <paramref name="argument4Type" />
/// is null,
/// <paramref name="argument5Type" />
/// is null,
/// <paramref name="argument6Type" />
/// is null,
/// <paramref name="argument7Type" />
/// is null,
/// <paramref name="argument8Type" />
/// is null,
/// <paramref name="argument9Type" />
/// is null,
/// <paramref name="argument10Type" />
/// is null,
/// <paramref name="argument11Type" />
/// is null,
/// <paramref name="argument12Type" />
/// is null,
/// <paramref name="argument13Type" />
/// is null,
/// <paramref name="argument14Type" />
/// is null, or
/// <paramref name="lambdaFunction" />
/// is null or produces a result of null.
/// </exception>
Creates a new  with arguments of the specified types, as defined by the specified function.
Creates a new with arguments of the specified types as defined by the specified function .
public static DbLambda Create(
            TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, TypeUsage argument5Type,
            TypeUsage argument6Type, TypeUsage argument7Type, TypeUsage argument8Type, TypeUsage argument9Type, TypeUsage argument10Type,
            TypeUsage argument11Type, TypeUsage argument12Type, TypeUsage argument13Type, TypeUsage argument14Type,
            Func
                <DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression,
                    DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction)
        {
            Check.NotNull(argument1Type, "argument1Type");
            Check.NotNull(argument2Type, "argument2Type");
            Check.NotNull(argument3Type, "argument3Type");
            Check.NotNull(argument4Type, "argument4Type");
            Check.NotNull(argument5Type, "argument5Type");
            Check.NotNull(argument6Type, "argument6Type");
            Check.NotNull(argument7Type, "argument7Type");
            Check.NotNull(argument8Type, "argument8Type");
            Check.NotNull(argument9Type, "argument9Type");
            Check.NotNull(argument10Type, "argument10Type");
            Check.NotNull(argument11Type, "argument11Type");
            Check.NotNull(argument12Type, "argument12Type");
            Check.NotNull(argument13Type, "argument13Type");
            Check.NotNull(argument14Type, "argument14Type");
            Check.NotNull(lambdaFunction, "lambdaFunction");
            var variables = CreateVariables(
                lambdaFunction.Method, argument1Type, argument2Type, argument3Type, argument4Type, argument5Type, argument6Type,
                argument7Type, argument8Type, argument9Type, argument10Type, argument11Type, argument12Type, argument13Type, argument14Type);
            var body = lambdaFunction(
                variables[0], variables[1], variables[2], variables[3], variables[4], variables[5], variables[6], variables[7], variables[8],
                variables[9], variables[10], variables[11], variables[12], variables[13]);
            return DbExpressionBuilder.Lambda(body, variables);
        }
public static DbLambda Create ( TypeUsage argument1Type , TypeUsage argument2Type , TypeUsage argument3Type , TypeUsage argument4Type , TypeUsage argument5Type , TypeUsage argument6Type , TypeUsage argument7Type , TypeUsage argument8Type , TypeUsage argument9Type , TypeUsage argument10Type , TypeUsage argument11Type , TypeUsage argument12Type , TypeUsage argument13Type , TypeUsage argument14Type , Func < DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression , DbExpression > lambdaFunction ) { Check . NotNull ( argument1Type , " " ) ; Check . NotNull ( argument2Type , " " ) ; Check . NotNull ( argument3Type , " " ) ; Check . NotNull ( argument4Type , " " ) ; Check . NotNull ( argument5Type , " " ) ; Check . NotNull ( argument6Type , " " ) ; Check . NotNull ( argument7Type , " " ) ; Check . NotNull ( argument8Type , " " ) ; Check . NotNull ( argument9Type , " " ) ; Check . NotNull ( argument10Type , " " ) ; Check . NotNull ( argument11Type , " " ) ; Check . NotNull ( argument12Type , " " ) ; Check . NotNull ( argument13Type , " " ) ; Check . NotNull ( argument14Type , " " ) ; Check . NotNull ( lambdaFunction , " " ) ; var variables = CreateVariables ( lambdaFunction . Method , argument1Type , argument2Type , argument3Type , argument4Type , argument5Type , argument6Type , argument7Type , argument8Type , argument9Type , argument10Type , argument11Type , argument12Type , argument13Type , argument14Type ) ; var body = lambdaFunction ( variables [ 0 ] , variables [ 1 ] , variables [ 2 ] , variables [ 3 ] , variables [ 4 ] , variables [ 5 ] , variables [ 6 ] , variables [ 7 ] , variables [ 8 ] , variables [ 9 ] , variables [ 10 ] , variables [ 11 ] , variables [ 12 ] , variables [ 13 ] ) ; return DbExpressionBuilder . Lambda ( body , variables ) ; }
Creates a new  with arguments of the specified types, as defined by the specified function.
Creates a new with arguments of the specified types as defined by the specified function .
A new DbLambda that describes an inline Lambda function with the specified body and formal parameters.
A new DbLambda that describes an inline Lambda function with the specified body and formal parameters .
None
argument1Type
TypeUsage
A  that defines the EDM type of the first argument to the Lambda function
A that defines the EDM type of the first argument to the Lambda function
argument2Type
TypeUsage
A  that defines the EDM type of the second argument to the Lambda function
A that defines the EDM type of the second argument to the Lambda function
argument3Type
TypeUsage
A  that defines the EDM type of the third argument to the Lambda function
A that defines the EDM type of the third argument to the Lambda function
argument4Type
TypeUsage
A  that defines the EDM type of the fourth argument to the Lambda function
A that defines the EDM type of the fourth argument to the Lambda function
argument5Type
TypeUsage
A  that defines the EDM type of the fifth argument to the Lambda function
A that defines the EDM type of the fifth argument to the Lambda function
argument6Type
TypeUsage
A  that defines the EDM type of the sixth argument to the Lambda function
A that defines the EDM type of the sixth argument to the Lambda function
argument7Type
TypeUsage
A  that defines the EDM type of the seventh argument to the Lambda function
A that defines the EDM type of the seventh argument to the Lambda function
argument8Type
TypeUsage
A  that defines the EDM type of the eighth argument to the Lambda function
A that defines the EDM type of the eighth argument to the Lambda function
argument9Type
TypeUsage
A  that defines the EDM type of the ninth argument to the Lambda function
A that defines the EDM type of the ninth argument to the Lambda function
argument10Type
TypeUsage
A  that defines the EDM type of the tenth argument to the Lambda function
A that defines the EDM type of the tenth argument to the Lambda function
argument11Type
TypeUsage
A  that defines the EDM type of the eleventh argument to the Lambda function
A that defines the EDM type of the eleventh argument to the Lambda function
argument12Type
TypeUsage
A  that defines the EDM type of the twelfth argument to the Lambda function
A that defines the EDM type of the twelfth argument to the Lambda function
argument13Type
TypeUsage
A  that defines the EDM type of the thirteenth argument to the Lambda function
A that defines the EDM type of the thirteenth argument to the Lambda function
argument14Type
TypeUsage
A  that defines the EDM type of the fourteenth argument to the Lambda function
A that defines the EDM type of the fourteenth argument to the Lambda function
lambdaFunction
Func
                <DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression,
                    DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression>
A function that defines the logic of the Lambda function as a
A function that defines the logic of the Lambda function as a