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