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