30 references to When
System.Data.Entity (30)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (1)
502VisitExpressionList(expression.When);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
706IList<DbExpression> newWhens = this.VisitExpressionList(expression.When); 710if (!object.ReferenceEquals(expression.When, newWhens) ||
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
640Dump(e.When, "Whens", "When");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (2)
479for (int idx = 0; idx < e.When.Count; idx++) 482e.When[idx].Accept(this);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
740for (int idx = 0; idx < e.When.Count; idx++) 742retInfo.Children.Add(this.Visit("When", e.When[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 (12)
203conditions = new List<DbExpression>(discriminatedConstructor.When.Count); 204for (int idx = 0; idx < discriminatedConstructor.When.Count; idx++) 206conditions.Add(discriminatedConstructor.When[idx]); 456if(casePredicate.When.Count != 1 || 466if(!TryMatchPropertyEqualsValue(casePredicate.When[0], rowProjection.Input.VariableName, out comparedProp, out constValue) || 474selectorPredicateMap.Add(propName, (DbComparisonExpression)casePredicate.When[0]); 487List<DbExpression> newWhens = new List<DbExpression>(entitySelector.When.Count); 490for (int idx = 0; idx < entitySelector.When.Count; idx++) 492DbPropertyExpression propWhen = (DbPropertyExpression)entitySelector.When[idx]; 568List<DbExpression> rewrittenPredicates = new List<DbExpression>(caseExpression.When.Count); 569foreach (var when in caseExpression.When) 606simplified = caseExpression.When[0];
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
348foreach (DbExpression when in node.When)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
103for (int i = 0; i < caseExpression.When.Count; i++) 105var when = caseExpression.When[i];
System\Data\Query\PlanCompiler\ITreeGenerator.cs (2)
1698for (int idx = 0; idx < e.When.Count; idx++) 1700childNodes.Add(VisitExprAsPredicate(e.When[idx]));
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
253bool whenNeedsRewrite = VisitExpressionList(expression.When);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
671Debug.Assert(e.When.Count == e.Then.Count); 674for (int i = 0; i < e.When.Count; ++i) 677result.Append(e.When[i].Accept(this));