49 references to Value
System.Data.Entity (49)
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)
441
attrs.Add("Value", e.
Value
);
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (7)
197
var byteArray = e.
Value
as byte[];
213
var @string = e.
Value
as string;
237
_key.AppendFormat(CultureInfo.InvariantCulture, "{0}", e.
Value
);
241
_key.Append(((DateTime)e.
Value
).ToString("o", CultureInfo.InvariantCulture));
245
_key.Append(((DateTimeOffset)e.
Value
).ToString("o", CultureInfo.InvariantCulture));
256
var geometry = e.
Value
as DbGeometry;
274
var geography = e.
Value
as DbGeography;
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
485
string stringVal = e.
Value
as string;
504
retInfo.Text.Append(e.
Value
.ToString());
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (5)
459
(bool)((DbConstantExpression)casePredicate.Then[0]).
Value
!= true || (bool)((DbConstantExpression)casePredicate.Else).
Value
!= false)
599
if (!true.Equals(then.
Value
)) { return false; }
604
if (!false.Equals(when.
Value
)) { return false; }
824
value = ((DbConstantExpression)expression).
Value
;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
2995
if (constExpr != null && System.Convert.ToInt64(constExpr.
Value
, CultureInfo.InvariantCulture) < 0)
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
428
PropagatorResult result = PropagatorResult.CreateSimpleValue(PropagatorFlags.Preserve, node.
Value
);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
1379
string preparedValue = PreparePattern((string)constantExpression.
Value
, insertPercentAtStart, insertPercentAtEnd, out specifyEscape);
System\Data\Objects\ELinq\MethodCallTranslator.cs (5)
445
includePath = (string)((DbConstantExpression)arg).
Value
;
898
recreatedArgument = DbExpressionBuilder.Constant(updatedType, ((DbConstantExpression)argument).
Value
);
1201
int value = (int)constantExpression.
Value
;
2660
if (!(lojCondition.
Value
is bool) || (bool)lojCondition.
Value
!= true)
System\Data\Objects\ELinq\OrderByLifter.cs (2)
243
object leftValue = ((DbConstantExpression)left).
Value
;
244
object rightValue = ((DbConstantExpression)right).
Value
;
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
563
SqlParameter parameter = CreateParameter(expression.
Value
, expression.ResultType);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (5)
911
string datepart = constExpr.
Value
as string;
1523
searchParamBuilder.Append(SqlProviderManifest.EscapeLikeText(constSearchParamExpression.
Value
as string, false, out escapingOccurred));
1558
if ((constSearchParamExpression != null) && (string.IsNullOrEmpty(constSearchParamExpression.
Value
as string) == false))
1601
if ((constSearchParamExpression != null) && (string.IsNullOrEmpty(constSearchParamExpression.
Value
as string) == false))
1647
if ((constSearchParamExpression != null) && (targetParamExpression != null) && (string.IsNullOrEmpty(constSearchParamExpression.
Value
as string) == false))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (17)
918
result.Append(e.
Value
.ToString());
923
result.Append(ByteArrayToBinaryString((Byte[])e.
Value
));
930
WrapWithCastIfNeeded(!isCastOptional, (bool)e.
Value
? "1" : "0", "bit", result);
934
WrapWithCastIfNeeded(!isCastOptional, e.
Value
.ToString(), "tinyint", result);
941
result.Append(EscapeSingleQuote(((System.DateTime)e.
Value
).ToString(this.IsPreKatmai ? "yyyy-MM-dd HH:mm:ss.fff" : "yyyy-MM-dd HH:mm:ss.fffffff", CultureInfo.InvariantCulture), false /* IsUnicode */));
950
result.Append(EscapeSingleQuote(e.
Value
.ToString(), false /* IsUnicode */));
959
result.Append(EscapeSingleQuote(((System.DateTimeOffset)e.
Value
).ToString("yyyy-MM-dd HH:mm:ss.fffffff zzz", CultureInfo.InvariantCulture), false /* IsUnicode */));
964
string strDecimal = ((Decimal)e.
Value
).ToString(CultureInfo.InvariantCulture);
980
double doubleValue = (Double)e.
Value
;
987
AppendSpatialConstant(result, ((DbGeography)e.
Value
).AsSpatialValue());
991
AppendSpatialConstant(result, ((DbGeometry)e.
Value
).AsSpatialValue());
995
WrapWithCastIfNeeded(true, EscapeSingleQuote(e.
Value
.ToString(), false /* IsUnicode */), "uniqueidentifier", result);
999
WrapWithCastIfNeeded(!isCastOptional, e.
Value
.ToString(), "smallint", result);
1003
WrapWithCastIfNeeded(!isCastOptional, e.
Value
.ToString(), "bigint", result);
1008
float singleValue = (float)e.
Value
;
1022
result.Append(EscapeSingleQuote(e.
Value
as string, isUnicode));
3902
sqlBuilder.Append(((DbConstantExpression)e).
Value
.ToString());