3 instantiations of DbConstantExpression
System.Data.Entity (3)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
610
return new
DbConstantExpression
(constantType, value);
628
return new
DbConstantExpression
(constantType, value);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (1)
1527
DbConstantExpression 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
"/>.
199
public override void Visit(
DbConstantExpression
expression)
System\Data\Common\CommandTrees\DbExpressionVisitor.cs (1)
67
public abstract void Visit(
DbConstantExpression
expression);
System\Data\Common\CommandTrees\DbExpressionVisitor_TResultType.cs (1)
75
public 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)
384
public override DbExpression Visit(
DbConstantExpression
expression)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (12)
54
private static readonly
DbConstantExpression
_boolTrue = Constant(true);
55
private 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>.
592
public static
DbConstantExpression
True { get { return _boolTrue; } }
595
/// Creates a <see cref="
DbConstantExpression
"/> with the Boolean value <code>false</code>.
598
public static
DbConstantExpression
False { get { return _boolFalse; } }
601
/// Creates a new <see cref="
DbConstantExpression
"/> with the given constant value.
607
public static
DbConstantExpression
Constant(object value)
614
/// Creates a new <see cref="
DbConstantExpression
"/> of the specified primitive type with the given constant value.
625
public 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)
2058
Convert.ToInt64(((
DbConstantExpression
)expression).Value, CultureInfo.InvariantCulture) < 0);
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
438
public override void Visit(
DbConstantExpression
e)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
189
public override void Visit(
DbConstantExpression
e)
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
482
public 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)
598
var
then = (
DbConstantExpression
)caseExpression.Then[0];
603
var
when = (
DbConstantExpression
)caseExpression.Else;
824
value = ((
DbConstantExpression
)expression).Value;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
2994
DbConstantExpression
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)
423
public 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)
92
public override TReturn Visit(
DbConstantExpression
expression)
System\Data\Mapping\ViewValidator.cs (1)
525
public override DbExpressionEntitySetInfo Visit(
DbConstantExpression
expression)
System\Data\Objects\ELinq\ExpressionConverter.cs (6)
1259
return ImplementEqualityConstantAndUnknown((System.Data.Common.CommandTrees.
DbConstantExpression
)left, right, pattern);
1275
return ImplementEqualityConstantAndUnknown((System.Data.Common.CommandTrees.
DbConstantExpression
)right, left, pattern);
1286
System.Data.Common.CommandTrees.
DbConstantExpression
constant, DbExpression unknown, EqualsPattern pattern)
1377
DbConstantExpression
constantExpression = (
DbConstantExpression
)translatedPatternExpression;
1392
var
escapeExpression = DbExpressionBuilder.Constant(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String), new String(new char[] { escapeChar }));
System\Data\Objects\ELinq\MethodCallTranslator.cs (6)
445
includePath = (string)((
DbConstantExpression
)arg).Value;
898
recreatedArgument = DbExpressionBuilder.Constant(updatedType, ((
DbConstantExpression
)argument).Value);
1200
DbConstantExpression
constantExpression = (
DbConstantExpression
)argument;
2654
var
lojCondition = (
DbConstantExpression
)loj.JoinCondition;
System\Data\Objects\ELinq\OrderByLifter.cs (2)
243
object leftValue = ((
DbConstantExpression
)left).Value;
244
object rightValue = ((
DbConstantExpression
)right).Value;
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
980
public override Node Visit(
DbConstantExpression
e)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
561
public override void Visit(
DbConstantExpression
expression)
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (1)
284
public override bool Visit(
DbConstantExpression
expression)
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (10)
905
DbConstantExpression
constExpr = e.Arguments[0] as
DbConstantExpression
;
1512
private static void TranslateConstantParameterForLike(SqlGenerator sqlgen, DbExpression targetExpression,
DbConstantExpression
constSearchParamExpression, SqlBuilder result, bool insertPercentStart, bool insertPercentEnd)
1527
DbConstantExpression
escapedSearchParamExpression = new DbConstantExpression(constSearchParamExpression.ResultType, searchParamBuilder.ToString());
1557
DbConstantExpression
constSearchParamExpression = args[1] as
DbConstantExpression
;
1600
DbConstantExpression
constSearchParamExpression = args[1] as
DbConstantExpression
;
1645
DbConstantExpression
constSearchParamExpression = args[1] as
DbConstantExpression
;
System\Data\SqlClient\SqlGen\SqlGenerator.cs (12)
903
private ISqlFragment VisitConstant(
DbConstantExpression
e, bool isCastOptional)
1155
public override ISqlFragment Visit(
DbConstantExpression
e)
1692
Debug.Assert(e.Limit is
DbConstantExpression
|| e.Limit is DbParameterReferenceExpression, "DbLimitExpression.Limit is of invalid expression type");
2018
sqlBuilder.Append(VisitConstant((
DbConstantExpression
)value, isSameEdmType));
2458
Debug.Assert(e.Count is
DbConstantExpression
|| e.Count is DbParameterReferenceExpression, "DbSkipExpression.Count is of invalid expression type");
2808
result.Append(VisitConstant((
DbConstantExpression
)left, isCastOptional));
2819
result.Append(VisitConstant((
DbConstantExpression
)right, isCastOptional));
3889
/// (which would be done if <see cref="Visit(
DbConstantExpression
)"/> is called)
3902
sqlBuilder.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
"/>