24 references to Else
System.Data.Entity (24)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (1)
504
VisitExpression(expression.
Else
);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
708
DbExpression newElse = this.VisitExpression(expression.
Else
);
712
!object.ReferenceEquals(expression.
Else
, newElse))
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
642
Dump(e.
Else
, "Else");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
487
e.
Else
.Accept(this);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
746
retInfo.Children.Add(this.Visit("Else", e.
Else
));
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
287
return (e => { if (e.ExpressionKind != DbExpressionKind.Case) { return false; } else { DbCaseExpression caseEx = (DbCaseExpression)e; return whenPattern(caseEx.When) && thenPattern(caseEx.Then) && elsePattern(caseEx.
Else
); } });
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (9)
209
constructors.Add((DbNewInstanceExpression)discriminatedConstructor.
Else
);
457
!TypeSemantics.IsBooleanType(casePredicate.Then[0].ResultType) || !TypeSemantics.IsBooleanType(casePredicate.
Else
.ResultType) ||
458
casePredicate.Then[0].ExpressionKind != DbExpressionKind.Constant || casePredicate.
Else
.ExpressionKind != DbExpressionKind.Constant ||
459
(bool)((DbConstantExpression)casePredicate.Then[0]).Value != true || (bool)((DbConstantExpression)casePredicate.
Else
).Value != false)
506
DbExpression newElse = ValueSubstituter.Substitute(entitySelector.
Else
, entityProjection.Input.VariableName, columnValues);
585
caseExpression = DbExpressionBuilder.Case(rewrittenPredicates, caseExpression.Then, caseExpression.
Else
);
600
if (caseExpression.
Else
!= null)
602
if (caseExpression.
Else
.ExpressionKind != DbExpressionKind.Constant) { return false; }
603
var when = (DbConstantExpression)caseExpression.
Else
;
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
365
if (-1 == match) { matchResult = Visit(node.
Else
); } else { matchResult = Visit(node.Then[match]); }
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
135
if (null == caseExpression.
Else
||
136
!TryMatchEntityTypeConstructor(caseExpression.
Else
, propertyMap, relPropertyMap, typeToRelPropertyMap, out elseType)) { return false; }
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1706
childNodes.Add(BuildSoftCast(VisitExprAsScalar(e.
Else
), e.ResultType));
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
255
bool elseNeedsRewrite = VisitExpression(expression.
Else
);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
683
if (e.
Else
!= null && !(e.
Else
is DbNullExpression))
686
result.Append(e.
Else
.Accept(this));