2 instantiations of DbLambda
System.Data.Entity (2)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
234return new DbLambda(validVars, body);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
3914DbLambda gpExpressionLambda = new DbLambda(gpExpressionLambdaVariables, ((GroupPartitionInfo)groupAggregateInfo).AggregateDefinition);
94 references to DbLambda
System.Data.Entity (94)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (2)
96protected virtual void VisitLambdaPre(DbLambda lambda) 105protected virtual void VisitLambdaPost(DbLambda lambda)
System\Data\Common\CommandTrees\DbLambda.cs (36)
50/// Creates a <see cref="DbLambda"/> with the specified inline Lambda function implementation and formal parameters. 64public static DbLambda Create(DbExpression body, IEnumerable<DbVariableReferenceExpression> variables) 70/// Creates a <see cref="DbLambda"/> with the specified inline Lambda function implementation and formal parameters. 84public static DbLambda Create(DbExpression body, params DbVariableReferenceExpression[] variables) 90/// Creates a new <see cref="DbLambda"/> with a single argument of the specified type, as defined by the specified function. 98public static DbLambda Create(TypeUsage argument1Type, Func<DbExpression, DbExpression> lambdaFunction) 110/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 120public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, Func<DbExpression, DbExpression, DbExpression> lambdaFunction) 133/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 144public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, Func<DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 158/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 170public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 185/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 198public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, TypeUsage argument5Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 214/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 229public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, TypeUsage argument5Type, TypeUsage argument6Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 246/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 262public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, TypeUsage argument5Type, TypeUsage argument6Type, TypeUsage argument7Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 280/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 297public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, TypeUsage argument5Type, TypeUsage argument6Type, TypeUsage argument7Type, TypeUsage argument8Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 316/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 335public 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) 355/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 375public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type, TypeUsage argument4Type, TypeUsage argument5Type, TypeUsage argument6Type, TypeUsage argument7Type, TypeUsage argument8Type, TypeUsage argument9Type, TypeUsage argument10Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 396/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 417public 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, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 439/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 462public 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, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 485/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 509public 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, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 533/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 558public 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) 583/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 610public 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, TypeUsage argument15Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction) 636/// Creates a new <see cref="DbLambda"/> with arguments of the specified types, as defined by the specified function. 664public 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, TypeUsage argument15Type, TypeUsage argument16Type, Func<DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (4)
180protected virtual DbLambda VisitLambda(DbLambda lambda) 184DbLambda result = lambda; 444DbLambda newLambda = this.VisitLambda(expression.Lambda);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (10)
192/// Creates a <see cref="DbLambda"/> with the specified inline Lambda function implementation and formal parameters. 206public static DbLambda Lambda(DbExpression body, IEnumerable<DbVariableReferenceExpression> variables) 212/// Creates a <see cref="DbLambda"/> with the specified inline Lambda function implementation and formal parameters. 226public static DbLambda Lambda(DbExpression body, params DbVariableReferenceExpression[] variables) 231private static DbLambda CreateLambda(DbExpression body, IEnumerable<DbVariableReferenceExpression> variables) 1500/// <param name="lambda">A <see cref="DbLambda"/> instance representing the Lambda function to apply.</param> 1511public static DbLambdaExpression Invoke(this DbLambda lambda, IEnumerable<DbExpression> arguments) 1519/// <param name="lambda">A <see cref="DbLambda"/> instance representing the Lambda function to apply.</param> 1530public static DbLambdaExpression Invoke(this DbLambda lambda, params DbExpression[] arguments) 1535private static DbLambdaExpression InvokeLambda(DbLambda lambda, IEnumerable<DbExpression> arguments)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
1504internal static TypeUsage ValidateInvoke(DbLambda lambda, IEnumerable<DbExpression> arguments, out DbExpressionList validArguments)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
341internal void Dump(DbLambda lambda)
System\Data\Common\CommandTrees\ValueExpressions.cs (4)
322private readonly DbLambda _lambda; 325internal DbLambdaExpression(TypeUsage resultType, DbLambda lambda, DbExpressionList args) 338/// Gets the <see cref="DbLambda"/> representing the Lambda function applied by this expression. 340public DbLambda Lambda { get { return _lambda; } }
System\Data\Common\EntitySql\CqlQuery.cs (6)
83/// Compiles an eSQL query command producing a validated <see cref="DbLambda"/>. 99internal static DbLambda CompileQueryCommandLambda(string queryCommandText, 107DbLambda lambda = AnalyzeQueryExpressionSemantics(astCommand, 229/// Performs semantic conversion, validation on a query command AST and creates a <see cref="DbLambda"/> 245private static DbLambda AnalyzeQueryExpressionSemantics(AST.Node astQueryCommand, 259DbLambda lambda = analyzer.AnalyzeQueryCommand(astExpr);
System\Data\Common\EntitySql\EntitySqlParser.cs (3)
55/// Parse a specific query with a specific set variables and produce a <see cref="DbLambda"/>. 57public DbLambda ParseLambda(string query, params DbVariableReferenceExpression[] variables) 66DbLambda result = CqlQuery.CompileQueryCommandLambda(query, _perspective, null /* parser options - use default */, null /* parameters */, variables);
System\Data\Common\EntitySql\ParseResult.cs (3)
53private readonly DbLambda _lambda; 57internal FunctionDefinition(string name, DbLambda lambda, int startPosition, int endPosition) 76public DbLambda Lambda { get { return this._lambda; } }
System\Data\Common\EntitySql\SemanticAnalyzer.cs (6)
87internal DbLambda AnalyzeQueryCommand(AST.Node astExpr) 107DbLambda lambda = DbExpressionBuilder.Lambda(expression, _sr.Variables.Values); 430private DbLambda _convertedDefinition = null; 438internal override DbLambda GetLambda(SemanticResolver sr) 465private static DbLambda ConvertInlineFunctionDefinition(InlineFunctionInfo functionInfo, SemanticResolver sr) 3914DbLambda gpExpressionLambda = new DbLambda(gpExpressionLambdaVariables, ((GroupPartitionInfo)groupAggregateInfo).AggregateDefinition);
System\Data\Common\EntitySql\SemanticResolver.cs (1)
1508internal abstract DbLambda GetLambda(SemanticResolver sr);
System\Data\Mapping\ViewGeneration\Utils\ExternalCalls.cs (4)
67DbLambda functionBody = CqlQuery.CompileQueryCommandLambda( 80/// Compiles eSQL <paramref name="functionDefinition"/> and returns <see cref="DbLambda"/>. 84static internal DbLambda CompileFunctionDefinition( 101DbLambda functionBody = CqlQuery.CompileQueryCommandLambda(
System\Data\Metadata\EdmItemCollection.cs (5)
188private Memoizer<EdmFunction, DbLambda> _getGeneratedFunctionDefinitionsMemoizer; 434internal DbLambda GetGeneratedFunctionDefinition(EdmFunction function) 440new Memoizer<EdmFunction, DbLambda>(GenerateFunctionDefinition, null), 454internal DbLambda GenerateFunctionDefinition(EdmFunction function) 462DbLambda generatedDefinition;
System\Data\Metadata\MetadataWorkspace.cs (1)
1208internal DbLambda GetGeneratedFunctionDefinition(EdmFunction function)
System\Data\Objects\ELinq\OrderByLifter.cs (2)
192DbLambda secondLambda = DbExpressionBuilder.Lambda(second.Projection, second.Input.Variable); 205DbLambda secondLambda = DbExpressionBuilder.Lambda(second.Predicate, second.Input.Variable);
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
256DbLambda lambda =
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
450rewritten = DbLambda.Create(rewritten, lambdaExpression.Lambda.Variables).Invoke(lambdaExpression.Arguments);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (3)
876private void EnterLambdaFunction(DbLambda lambda, List<Tuple<Node, bool>> argumentValues, EdmFunction expandingEdmFunction) 1045DbLambda lambda; 1084private Node VisitLambdaExpression(DbLambda lambda, IList<DbExpression> arguments, DbExpression applicationExpr, EdmFunction expandingEdmFunction)