48 references to Constant
System.Data.Entity (48)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
696
if (count.ExpressionKind != DbExpressionKind.
Constant
&&
1387
if (limit.ExpressionKind != DbExpressionKind.
Constant
&&
2056
return (expression.ExpressionKind == DbExpressionKind.
Constant
&&
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (5)
458
casePredicate.Then[0].ExpressionKind != DbExpressionKind.
Constant
|| casePredicate.Else.ExpressionKind != DbExpressionKind.
Constant
||
594
if (caseExpression.Then.Count != 1 && caseExpression.Then[0].ExpressionKind == DbExpressionKind.
Constant
)
602
if (caseExpression.Else.ExpressionKind != DbExpressionKind.
Constant
) { return false; }
822
if (expression.ExpressionKind == DbExpressionKind.
Constant
)
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
29
: base(DbExpressionKind.
Constant
, resultType)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
2983
if (expr.ExpressionKind != DbExpressionKind.
Constant
&&
System\Data\Mapping\ViewValidator.cs (1)
89
case DbExpressionKind.
Constant
:
System\Data\Objects\ELinq\ExpressionConverter.cs (5)
1251
case DbExpressionKind.
Constant
:
1254
case DbExpressionKind.
Constant
: // constant EQ constant
1264
case DbExpressionKind.
Constant
: // null EQ constant --> false
1274
case DbExpressionKind.
Constant
:
1374
if (providerSupportsEscapingLikeArgument && translatedPatternExpression.ExpressionKind == DbExpressionKind.
Constant
)
System\Data\Objects\ELinq\MethodCallTranslator.cs (7)
443
if (arg.ExpressionKind == DbExpressionKind.
Constant
)
897
case DbExpressionKind.
Constant
:
1193
if (argument.ExpressionKind != DbExpressionKind.
Constant
||
2259
IEnumerable<DbExpression> constantArguments = arguments.Where(argument => argument.ExpressionKind == DbExpressionKind.
Constant
);
2267
IEnumerable<DbExpression> otherArguments = arguments.Where(argument => argument.ExpressionKind != DbExpressionKind.
Constant
);
2650
loj.JoinCondition.ExpressionKind != DbExpressionKind.
Constant
)
2674
if (lojLeft.Arguments.Count != 1 || lojLeft.Arguments[0].ExpressionKind != DbExpressionKind.
Constant
)
System\Data\Objects\ELinq\OrderByLifter.cs (17)
240
if (left.ExpressionKind == DbExpressionKind.
Constant
&&
241
right.ExpressionKind == DbExpressionKind.
Constant
)
329
if (_limit.Limit.ExpressionKind == DbExpressionKind.
Constant
&&
330
k.ExpressionKind == DbExpressionKind.
Constant
)
381
if (_limit.Limit.ExpressionKind == DbExpressionKind.
Constant
&&
382
k.ExpressionKind == DbExpressionKind.
Constant
)
452
if (_limit.Limit.ExpressionKind == DbExpressionKind.
Constant
&&
453
k.ExpressionKind == DbExpressionKind.
Constant
)
476
if (_skip.Count.ExpressionKind == DbExpressionKind.
Constant
&&
477
_limit.Limit.ExpressionKind == DbExpressionKind.
Constant
&&
478
k.ExpressionKind == DbExpressionKind.
Constant
)
549
if (_limit.Limit.ExpressionKind == DbExpressionKind.
Constant
&&
550
k.ExpressionKind == DbExpressionKind.
Constant
)
623
if (_skip.Count.ExpressionKind == DbExpressionKind.
Constant
&&
624
k.ExpressionKind == DbExpressionKind.
Constant
)
672
if (_skip.Count.ExpressionKind == DbExpressionKind.
Constant
&&
673
k.ExpressionKind == DbExpressionKind.
Constant
)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
540
Debug.Assert(value.ExpressionKind == DbExpressionKind.
Constant
,
System\Data\SqlClient\SqlGen\SqlGenerator.cs (7)
890
return (expressionKind == DbExpressionKind.
Constant
||
2015
case DbExpressionKind.
Constant
:
2806
if (left.ExpressionKind == DbExpressionKind.
Constant
)
2817
if (right.ExpressionKind == DbExpressionKind.
Constant
)
3897
if (e.ExpressionKind == DbExpressionKind.
Constant
)
3952
case DbExpressionKind.
Constant
:
4335
if (allowConstants && (expression.ExpressionKind == DbExpressionKind.
Constant
))