3 instantiations of DbConstantExpression
System.Data.Entity (3)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
610return new DbConstantExpression(constantType, value); 628return new DbConstantExpression(constantType, value);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (1)
1527DbConstantExpression escapedSearchParamExpression = new DbConstantExpression(constSearchParamExpression.ResultType, searchParamBuilder.ToString());
75 references to DbConstantExpression
System.Data.Entity (75)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (2)
195/// Visitor pattern method for <see cref="DbConstantExpression"/>. 199public override void Visit(DbConstantExpression expression)
System\Data\Common\CommandTrees\DbExpressionVisitor.cs (1)
67public abstract void Visit(DbConstantExpression expression);
System\Data\Common\CommandTrees\DbExpressionVisitor_TResultType.cs (1)
75public abstract TResultType Visit(DbConstantExpression expression);
System\Data\Common\CommandTrees\DbSetClause.cs (1)
56/// Constrained to be a <see cref="DbConstantExpression"/> or <see cref="DbNullExpression"/>
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
384public override DbExpression Visit(DbConstantExpression expression)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (12)
54private static readonly DbConstantExpression _boolTrue = Constant(true); 55private static readonly DbConstantExpression _boolFalse = Constant(false); 511/// or <paramref name="count"/> is not <see cref="DbConstantExpression"/> or <see cref="DbParameterReferenceExpression"/> or has a 589/// Creates a <see cref="DbConstantExpression"/> with the Boolean value <code>true</code>. 592public static DbConstantExpression True { get { return _boolTrue; } } 595/// Creates a <see cref="DbConstantExpression"/> with the Boolean value <code>false</code>. 598public static DbConstantExpression False { get { return _boolFalse; } } 601/// Creates a new <see cref="DbConstantExpression"/> with the given constant value. 607public static DbConstantExpression Constant(object value) 614/// Creates a new <see cref="DbConstantExpression"/> of the specified primitive type with the given constant value. 625public static DbConstantExpression Constant(this TypeUsage constantType, object value) 2464/// <paramref name="count"/> is not <see cref="DbConstantExpression"/> or <see cref="DbParameterReferenceExpression"/> or has a
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
2058Convert.ToInt64(((DbConstantExpression)expression).Value, CultureInfo.InvariantCulture) < 0);
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
438public override void Visit(DbConstantExpression e)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
189public override void Visit(DbConstantExpression e)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
482public override TreeNode Visit(DbConstantExpression e)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (7)
459(bool)((DbConstantExpression)casePredicate.Then[0]).Value != true || (bool)((DbConstantExpression)casePredicate.Else).Value != false) 598var then = (DbConstantExpression)caseExpression.Then[0]; 603var when = (DbConstantExpression)caseExpression.Else; 824value = ((DbConstantExpression)expression).Value;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
2994DbConstantExpression constExpr = expr as DbConstantExpression;
System\Data\EntityKey.cs (1)
701/// for that key member, represented as a <see cref="DbConstantExpression"/> with the same result
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
423public override PropagatorResult Visit(DbConstantExpression node)
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
105/// Each scalar value appearing in the record is a <see cref="DbConstantExpression" />. A placeholder is created by recursively
System\Data\Mapping\Update\Internal\UpdateExpressionVisitor.cs (1)
92public override TReturn Visit(DbConstantExpression expression)
System\Data\Mapping\ViewValidator.cs (1)
525public override DbExpressionEntitySetInfo Visit(DbConstantExpression expression)
System\Data\Objects\ELinq\ExpressionConverter.cs (6)
1259return ImplementEqualityConstantAndUnknown((System.Data.Common.CommandTrees.DbConstantExpression)left, right, pattern); 1275return ImplementEqualityConstantAndUnknown((System.Data.Common.CommandTrees.DbConstantExpression)right, left, pattern); 1286System.Data.Common.CommandTrees.DbConstantExpression constant, DbExpression unknown, EqualsPattern pattern) 1377DbConstantExpression constantExpression = (DbConstantExpression)translatedPatternExpression; 1392var escapeExpression = DbExpressionBuilder.Constant(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String), new String(new char[] { escapeChar }));
System\Data\Objects\ELinq\MethodCallTranslator.cs (6)
445includePath = (string)((DbConstantExpression)arg).Value; 898recreatedArgument = DbExpressionBuilder.Constant(updatedType, ((DbConstantExpression)argument).Value); 1200DbConstantExpression constantExpression = (DbConstantExpression)argument; 2654var lojCondition = (DbConstantExpression)loj.JoinCondition;
System\Data\Objects\ELinq\OrderByLifter.cs (2)
243object leftValue = ((DbConstantExpression)left).Value; 244object rightValue = ((DbConstantExpression)right).Value;
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
980public override Node Visit(DbConstantExpression e)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
561public override void Visit(DbConstantExpression expression)
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
284public override bool Visit(DbConstantExpression expression)
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (10)
905DbConstantExpression constExpr = e.Arguments[0] as DbConstantExpression; 1512private static void TranslateConstantParameterForLike(SqlGenerator sqlgen, DbExpression targetExpression, DbConstantExpression constSearchParamExpression, SqlBuilder result, bool insertPercentStart, bool insertPercentEnd) 1527DbConstantExpression escapedSearchParamExpression = new DbConstantExpression(constSearchParamExpression.ResultType, searchParamBuilder.ToString()); 1557DbConstantExpression constSearchParamExpression = args[1] as DbConstantExpression; 1600DbConstantExpression constSearchParamExpression = args[1] as DbConstantExpression; 1645DbConstantExpression constSearchParamExpression = args[1] as DbConstantExpression;
System\Data\SqlClient\SqlGen\SqlGenerator.cs (12)
903private ISqlFragment VisitConstant(DbConstantExpression e, bool isCastOptional) 1155public override ISqlFragment Visit(DbConstantExpression e) 1692Debug.Assert(e.Limit is DbConstantExpression || e.Limit is DbParameterReferenceExpression, "DbLimitExpression.Limit is of invalid expression type"); 2018sqlBuilder.Append(VisitConstant((DbConstantExpression)value, isSameEdmType)); 2458Debug.Assert(e.Count is DbConstantExpression || e.Count is DbParameterReferenceExpression, "DbSkipExpression.Count is of invalid expression type"); 2808result.Append(VisitConstant((DbConstantExpression)left, isCastOptional)); 2819result.Append(VisitConstant((DbConstantExpression)right, isCastOptional)); 3889/// (which would be done if <see cref="Visit(DbConstantExpression)"/> is called) 3902sqlBuilder.Append(((DbConstantExpression)e).Value.ToString()); 4237/// has an argument that is not a <see cref="DbConstantExpression"/> and is not 4267/// Returns true if the given expression is not a <see cref="DbConstantExpression"/> or a 4323/// Returns true if the given expression is not a <see cref="DbConstantExpression"/>