src/Shared/EntityFramework/Core/Common/CommandTrees/DbLambda.cs
/// <summary>
/// Creates a new <see cref="T:System.Data.Entity.Core.Common.CommandTrees.DbLambda" /> with a single argument of the specified type, as defined by the specified function.
/// </summary>
/// <returns>A new DbLambda that describes an inline Lambda function with the specified body and single formal parameter.</returns>
/// <param name="argument1Type">
/// A <see cref="T:System.Data.Entity.Core.Metadata.Edm.TypeUsage" /> that defines the EDM type of the 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, or
/// <paramref name="lambdaFunction" />
/// is null or produces a result of null.
/// </exception>
Creates a new  with a single argument of the specified type, as defined by the specified function.
Creates a new with a single argument of the specified type as defined by the specified function .
public static DbLambda Create(TypeUsage argument1Type, Func<DbExpression, DbExpression> lambdaFunction)
        {
            Check.NotNull(argument1Type, "argument1Type");
            Check.NotNull(lambdaFunction, "lambdaFunction");
            var variables = CreateVariables(lambdaFunction.Method, argument1Type);
            var body = lambdaFunction(variables[0]);
            return DbExpressionBuilder.Lambda(body, variables);
        }
public static DbLambda Create ( TypeUsage argument1Type , Func < DbExpression , DbExpression > lambdaFunction ) { Check . NotNull ( argument1Type , " " ) ; Check . NotNull ( lambdaFunction , " " ) ; var variables = CreateVariables ( lambdaFunction . Method , argument1Type ) ; var body = lambdaFunction ( variables [ 0 ] ) ; return DbExpressionBuilder . Lambda ( body , variables ) ; }
Creates a new  with a single argument of the specified type, as defined by the specified function.
Creates a new with a single argument of the specified type as defined by the specified function .
A new DbLambda that describes an inline Lambda function with the specified body and single formal parameter.
A new DbLambda that describes an inline Lambda function with the specified body and single formal parameter .
None
argument1Type
TypeUsage
A  that defines the EDM type of the argument to the Lambda function
A that defines the EDM type of the argument to the Lambda function
lambdaFunction
Func<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