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