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