51 references to Projection
System.Data.Entity (51)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (1)
613VisitExpression(expression.Projection);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
865DbExpression projection = this.VisitExpression(expression.Projection); 868!object.ReferenceEquals(expression.Projection, projection))
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
727Dump(e.Projection, "Projection");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
593e.Projection.Accept(this);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
874retInfo.Children.Add(this.Visit("Projection", e.Projection));
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
279return (e => { if (e.ExpressionKind != DbExpressionKind.Project) { return false; } else { DbProjectExpression projectEx = (DbProjectExpression)e; return inputPattern(projectEx.Input.Expression) && projectionPattern(projectEx.Projection); } });
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (7)
199if (entityProject.Projection.ExpressionKind == DbExpressionKind.Case) 202DbCaseExpression discriminatedConstructor = (DbCaseExpression)entityProject.Projection; 214constructors.Add((DbNewInstanceExpression)entityProject.Projection); 440DbNewInstanceExpression rowConstructor = (DbNewInstanceExpression)rowProjection.Projection; 486DbCaseExpression entitySelector = (DbCaseExpression)entityProjection.Projection; 632DbExpression outerProjection = outerProject.Projection; 634DbNewInstanceExpression innerNew = (DbNewInstanceExpression)innerProject.Projection;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (6)
3965if (projectExpression.Projection.ExpressionKind == DbExpressionKind.VariableReference) 3967DbVariableReferenceExpression projectionExpression = (DbVariableReferenceExpression)projectExpression.Projection; 3970else if (projectExpression.Projection.ExpressionKind == DbExpressionKind.NewInstance && 3971TypeSemantics.IsRowType(projectExpression.Projection.ResultType)) 3973if (!TypeSemantics.IsEqual(projectExpression.Projection.ResultType, projectExpression.Input.Variable.ResultType)) 3980DbNewInstanceExpression projectionExpression = (DbNewInstanceExpression)projectExpression.Projection;
System\Data\Mapping\Update\Internal\Propagator.cs (3)
254Debug.Assert(null != node.Projection, "CQT validates DbProjectExpression.Projection property"); 256DbNewInstanceExpression projection = node.Projection as DbNewInstanceExpression; 260throw EntityUtil.NotSupported(System.Data.Entity.Strings.Update_UnsupportedProjection(node.Projection.ExpressionKind));
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (3)
82if (project.Projection.ExpressionKind != DbExpressionKind.Case) { return false; } 83var caseExpression = (DbCaseExpression)project.Projection; 84if (project.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.EntityType) { return false; }
System\Data\Mapping\ViewValidator.cs (1)
359DbExpressionEntitySetInfo setInfo = VisitExpression(expression.Projection);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
852if (project.Projection == project.Input.Variable)
System\Data\Objects\ELinq\MethodCallTranslator.cs (8)
2638if (rightProject.Projection.ExpressionKind != DbExpressionKind.Property) 2642var rightProjectProjection = (DbPropertyExpression)rightProject.Projection; 2928if (project.Projection.ExpressionKind != DbExpressionKind.NewInstance || 2929project.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType) 2933var projection = (DbNewInstanceExpression)project.Projection; 2958if (innerProject.Projection.ExpressionKind != DbExpressionKind.NewInstance || 2959innerProject.Projection.ResultType.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType) 2963var innerProjection = (DbNewInstanceExpression)innerProject.Projection;
System\Data\Objects\ELinq\OrderByLifter.cs (4)
192DbLambda secondLambda = DbExpressionBuilder.Lambda(second.Projection, second.Input.Variable); 195DbProjectExpression composed = first.Input.Project(secondLambda.Invoke(first.Projection)); 208DbFilterExpression composed = first.Input.Filter(secondLambda.Invoke(first.Projection)); 259return inputBinding.Project(project.Projection);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (4)
497DbExpression newProjection = this.Rewrite(project.Projection); 498if (!object.ReferenceEquals(project.Projection, newProjection)) 833DbExpression testExpr = expression.Projection; 847return found.BindAs(expression.Input.VariableName).Project(expression.Projection);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (4)
1949if(project.Projection.ExpressionKind == DbExpressionKind.VariableReference && 1950((DbVariableReferenceExpression)project.Projection).VariableName == project.Input.VariableName) 2213DiscriminatedNewEntityOp newInstOp = _iqtCommand.CreateDiscriminatedNewEntityOp(e.Projection.ResultType, 2250Node projectionNode = VisitExprAsScalar(e.Projection);
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
574bool projectionNeedsRewrite = VisitExpression(expression.Projection);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
2259DbNewInstanceExpression newInstanceExpression = e.Projection as DbNewInstanceExpression; 2272result.Select.Append(e.Projection.Accept(this));