17 references to Constant
System.Data.Entity (17)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
390
return VisitTerminal(expression, newType => CqtBuilder.
Constant
(newType, expression.GetValue()));
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1862
constantOrNullExpression = DbExpressionBuilder.
Constant
(resultType, value);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
541
return enumMember.EnumType.
Constant
(enumMember.EnumMember.Value);
615
return new ValueExpression(DbExpressionBuilder.
Constant
(GetLiteralTypeUsage(literal), literal.Value));
System\Data\EntityKey.cs (2)
746
new[] { DbExpressionBuilder.
Constant
(Helper.GetModelTypeUsage(singletonKeyMember), _singletonKeyValue)
759
keyColumns[i] = DbExpressionBuilder.
Constant
(Helper.GetModelTypeUsage(keyMember), _compositeKeyValues[i]).As(keyMember.Name);
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
403
return columnRef.Equal(columnRef.ResultType.
Constant
(condition.Value));
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
481
return DbExpressionBuilder.
Constant
(propertyType, principalValue);
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
143
return modelTypeUsage.
Constant
(m_scalar);
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
743
return DbExpressionBuilder.
Constant
(expression.ResultType, objParam.Value);
1383
translatedPatternExpression = DbExpressionBuilder.
Constant
(constantExpression.ResultType, preparedValue);
1392
var escapeExpression = DbExpressionBuilder.
Constant
(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String), new String(new char[] { escapeChar }));
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
898
recreatedArgument = DbExpressionBuilder.
Constant
(updatedType, ((DbConstantExpression)argument).Value);
2339
thenExpressions.Add(DbExpressionBuilder.
Constant
(element.ResultType, defaultValue));
System\Data\Objects\ELinq\OrderByLifter.cs (1)
247
return left.ResultType.
Constant
(combineConstants((int)leftValue, (int)rightValue));
System\Data\Objects\ELinq\Translator.cs (1)
150
return DbExpressionBuilder.
Constant
(type, value);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
677
return DbExpressionBuilder.
Constant
(op.Type, op.Value);