23 references to Then
System.Data.Entity (23)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (1)
503
VisitExpressionList(expression.
Then
);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
707
IList<DbExpression> newThens = this.VisitExpressionList(expression.
Then
);
711
!object.ReferenceEquals(expression.
Then
, newThens) ||
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
641
Dump(e.
Then
, "Thens", "Then");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
484
e.
Then
[idx].Accept(this);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
743
retInfo.Children.Add(this.Visit("Then", e.
Then
[idx]));
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 (10)
207
constructors.Add((DbNewInstanceExpression)discriminatedConstructor.
Then
[idx]);
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)
488
List<DbExpression> newThens = new List<DbExpression>(entitySelector.
Then
.Count);
493
DbNewInstanceExpression entityThen = (DbNewInstanceExpression)entitySelector.
Then
[idx];
585
caseExpression = DbExpressionBuilder.Case(rewrittenPredicates, caseExpression.
Then
, caseExpression.Else);
594
if (caseExpression.
Then
.Count != 1 && caseExpression.
Then
[0].ExpressionKind == DbExpressionKind.Constant)
598
var then = (DbConstantExpression)caseExpression.
Then
[0];
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 (1)
106
var then = caseExpression.
Then
[i];
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1702
childNodes.Add(BuildSoftCast(VisitExprAsScalar(e.
Then
[idx]), e.ResultType));
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
254
bool thenNeedsRewrite = VisitExpressionList(expression.
Then
);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
671
Debug.Assert(e.When.Count == e.
Then
.Count);
679
result.Append(e.
Then
[i].Accept(this));