1 instantiation of DbCaseExpression
System.Data.Entity (1)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1449
return new
DbCaseExpression
(resultType, validWhens, validThens, elseExpression);
34 references to DbCaseExpression
System.Data.Entity (34)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (2)
493
/// Visitor pattern method for <see cref="
DbCaseExpression
"/>.
497
public override void Visit(
DbCaseExpression
expression)
System\Data\Common\CommandTrees\DbExpressionVisitor.cs (1)
49
public abstract void Visit(
DbCaseExpression
expression);
System\Data\Common\CommandTrees\DbExpressionVisitor_TResultType.cs (1)
54
public abstract TResultType Visit(
DbCaseExpression
expression);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
700
public override DbExpression Visit(
DbCaseExpression
expression)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
1430
/// Creates a new <see cref="
DbCaseExpression
"/>.
1444
public static
DbCaseExpression
Case(IEnumerable<DbExpression> whenExpressions, IEnumerable<DbExpression> thenExpressions, DbExpression elseExpression)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
637
public override void Visit(
DbCaseExpression
e)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
475
public override void Visit(
DbCaseExpression
e)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
737
public override TreeNode Visit(
DbCaseExpression
e)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (4)
283
/// Constructs a new pattern that is matched iff the argument expression is a <see cref="
DbCaseExpression
"/> with 'when' and 'then' subexpression lists that match the specified <paramref name="whenPattern"/> and <paramref name="thenPattern"/> collection patterns and an 'else' subexpression that matches the specified <paramref name="elsePattern"/> expression pattern
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); } });
291
/// Gets a pattern that is matched if the argument expression is a <see cref="
DbCaseExpression
"/>. This property can be used instead of repeated calls to <see cref="MatchKind"/> with an argument of <see cref="DbExpressionKind.Case"/>
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (11)
202
DbCaseExpression
discriminatedConstructor = (
DbCaseExpression
)entityProject.Projection;
455
DbCaseExpression
casePredicate = (
DbCaseExpression
)columnVal;
486
DbCaseExpression
entitySelector = (
DbCaseExpression
)entityProjection.Projection;
507
DbCaseExpression
newEntitySelector = DbExpressionBuilder.Case(newWhens, newThens, newElse);
564
DbCaseExpression
caseExpression = (
DbCaseExpression
)expression;
593
var
caseExpression = (
DbCaseExpression
)predicate;
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
339
public override PropagatorResult Visit(
DbCaseExpression
node)
System\Data\Mapping\Update\Internal\UpdateExpressionVisitor.cs (1)
77
public override TReturn Visit(
DbCaseExpression
expression)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
83
var
caseExpression = (
DbCaseExpression
)project.Projection;
System\Data\Mapping\ViewValidator.cs (1)
485
public override DbExpressionEntitySetInfo Visit(
DbCaseExpression
expression)
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
2340
DbCaseExpression
caseExpression = DbExpressionBuilder.Case(whenExpressions, thenExpressions, element);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1695
public override Node Visit(
DbCaseExpression
e)
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
251
public override bool Visit(
DbCaseExpression
expression)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
667
public override ISqlFragment Visit(
DbCaseExpression
e)