1 instantiation of DbCaseExpression
System.Data.Entity (1)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1449return 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"/>. 497public override void Visit(DbCaseExpression expression)
System\Data\Common\CommandTrees\DbExpressionVisitor.cs (1)
49public abstract void Visit(DbCaseExpression expression);
System\Data\Common\CommandTrees\DbExpressionVisitor_TResultType.cs (1)
54public abstract TResultType Visit(DbCaseExpression expression);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
700public override DbExpression Visit(DbCaseExpression expression)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
1430/// Creates a new <see cref="DbCaseExpression"/>. 1444public static DbCaseExpression Case(IEnumerable<DbExpression> whenExpressions, IEnumerable<DbExpression> thenExpressions, DbExpression elseExpression)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
637public override void Visit(DbCaseExpression e)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
475public override void Visit(DbCaseExpression e)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
737public 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 287return (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)
202DbCaseExpression discriminatedConstructor = (DbCaseExpression)entityProject.Projection; 455DbCaseExpression casePredicate = (DbCaseExpression)columnVal; 486DbCaseExpression entitySelector = (DbCaseExpression)entityProjection.Projection; 507DbCaseExpression newEntitySelector = DbExpressionBuilder.Case(newWhens, newThens, newElse); 564DbCaseExpression caseExpression = (DbCaseExpression)expression; 593var caseExpression = (DbCaseExpression)predicate;
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
339public override PropagatorResult Visit(DbCaseExpression node)
System\Data\Mapping\Update\Internal\UpdateExpressionVisitor.cs (1)
77public override TReturn Visit(DbCaseExpression expression)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
83var caseExpression = (DbCaseExpression)project.Projection;
System\Data\Mapping\ViewValidator.cs (1)
485public override DbExpressionEntitySetInfo Visit(DbCaseExpression expression)
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
2340DbCaseExpression caseExpression = DbExpressionBuilder.Case(whenExpressions, thenExpressions, element);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1695public override Node Visit(DbCaseExpression e)
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
251public override bool Visit(DbCaseExpression expression)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
667public override ISqlFragment Visit(DbCaseExpression e)