38 references to Constant
System.Data.Entity (38)
System\Data\Common\CommandTrees\AbstractExpressions.cs (14)
409return ExpressionBuilder.DbExpressionBuilder.Constant(value); 447return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 466return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 485return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 504return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 523return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 542return ExpressionBuilder.DbExpressionBuilder.Constant(value); 561return ExpressionBuilder.DbExpressionBuilder.Constant(value); 580return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 599return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 618return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 637return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 671return ExpressionBuilder.DbExpressionBuilder.Constant(value.Value); 690return ExpressionBuilder.DbExpressionBuilder.Constant(value);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
54private static readonly DbConstantExpression _boolTrue = Constant(true); 55private static readonly DbConstantExpression _boolFalse = Constant(false);
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
188DbSetClause newClause = new DbSetClause(inputIdentifier.Value.Property, DbExpressionBuilder.Constant(value));
System\Data\Objects\ELinq\MethodCallTranslator.cs (16)
999DbComparisonExpression comparisonExpression = indexOfExpression.GreaterThan(DbExpressionBuilder.Constant(0)); 1020CqtExpression minusExpression = indexOfExpression.Minus(DbExpressionBuilder.Constant(1)); 1051.Equal(DbExpressionBuilder.Constant(1)); 1085.Equal(DbExpressionBuilder.Constant(1)); 1111DbExpression fromIndex = arg1.Plus(DbExpressionBuilder.Constant(1)); 1154DbExpressionBuilder.Constant(1), 1170arg1.Plus(arg2).Plus(DbExpressionBuilder.Constant(1)); 1232DbExpressionBuilder.Constant(1), 1239arg1.Plus(DbExpressionBuilder.Constant(1)), 1276.Equal(DbExpressionBuilder.Constant(0)); 1981DbProjectExpression constantProject = operand.BindAs(parent.AliasGenerator.Next()).Project(DbExpressionBuilder.Constant(1)); 1988DbExpression constantExpression = DbExpressionBuilder.Constant(1); 2296return parent.Limit(expression, DbExpressionBuilder.Constant(1)); 2377return parent.Limit(expression, DbExpressionBuilder.Constant(2)); 2398return parent.Limit(expression, DbExpressionBuilder.Constant(1)); 2468return parent.Limit(expression, DbExpressionBuilder.Constant(2));
System\Data\Objects\ELinq\Translator.cs (1)
851recordColumns.Add(DbExpressionBuilder.Constant(true).As(KeyColumnName));
System\Data\Query\PlanCompiler\CTreeGenerator.cs (2)
1370DbExpression constExpr = DbExpressionBuilder.Constant(1); 2295DbNewInstanceExpression collectionExpr = DbExpressionBuilder.NewCollection(new [] { DbExpressionBuilder.Constant(1) });
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (2)
474private static readonly DbExpression defaultGeographySridExpression = DbExpressionBuilder.Constant(DbGeography.DefaultCoordinateSystemId); 475private static readonly DbExpression defaultGeometrySridExpression = DbExpressionBuilder.Constant(DbGeometry.DefaultCoordinateSystemId);