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