10 references to Case
System.Data.Entity (10)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (2)
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 (5)
199if (entityProject.Projection.ExpressionKind == DbExpressionKind.Case) 356Patterns.MatchKind(DbExpressionKind.Case) 451if(columnVal.ExpressionKind != DbExpressionKind.Case) 560private static readonly Func<DbExpression, bool> Pattern_Case = Patterns.MatchKind(DbExpressionKind.Case); 592if (predicate.ExpressionKind != DbExpressionKind.Case) { return false; }
System\Data\Common\CommandTrees\OperatorExpressions.cs (1)
186: base(DbExpressionKind.Case, commonResultType)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
82if (project.Projection.ExpressionKind != DbExpressionKind.Case) { return false; }
System\Data\Mapping\ViewValidator.cs (1)
94case DbExpressionKind.Case: