87 references to Value
System.Data.Linq (87)
SqlClient\Common\SqlVisitor.cs (1)
263
return ((SqlValue)expr).
Value
;
SqlClient\Query\MethodCallConverter.cs (1)
164
if (strValue != null && strValue.
Value
== null) {
SqlClient\Query\QueryConverter.cs (14)
284
ITable t = sv.
Value
as ITable;
289
IQueryable query = sv.
Value
as IQueryable;
339
Delegate d = value.
Value
as Delegate;
673
Expression.ArrayIndex(cpArray.Accessor.Body, Expression.Constant(vIndex.
Value
, vIndex.ClrType)),
707
else if (expr.NodeType == SqlNodeType.Value && ((SqlValue)expr).
Value
== null) {
933
if (typeof(int).IsAssignableFrom(constTakeCount.
Value
.GetType()) && ((int)constTakeCount.
Value
) < 0) {
945
if (typeof(int).IsAssignableFrom(constSkipCount.
Value
.GetType()) && ((int)constSkipCount.
Value
) < 0) {
1047
if (typeof(int).IsAssignableFrom(constSkipCount.
Value
.GetType()) && ((int)constSkipCount.
Value
) < 0) {
1784
IEnumerable values = ((SqlValue)seqNode).
Value
as IEnumerable;
1849
DataContext dc = value.
Value
as DataContext;
1950
return ((SqlValue)exp).
Value
;
SqlClient\Query\SqlBinder.cs (32)
206
bool leftIsBool = vLeft!=null && vLeft.
Value
is bool;
207
bool rightIsBool = vRight!=null && vRight.
Value
is bool;
213
bool value = (bool)vLeft.
Value
;
222
bool value = (bool)vRight.
Value
;
231
bool leftValue = (bool)vLeft.
Value
;
232
bool rightValue = (bool)vRight.
Value
;
250
if (vLeft.
Value
!= null && (bool)vLeft.
Value
) {
256
if (vRight.
Value
!= null && (bool)vRight.
Value
) {
262
return sql.ValueFromObject((bool)(vLeft.
Value
?? false) && (bool)(vRight.
Value
?? false), false, bo.SourceExpression);
271
if (vLeft.
Value
!= null && !(bool)vLeft.
Value
) {
277
if (vRight.
Value
!= null && !(bool)vRight.
Value
) {
283
return sql.ValueFromObject((bool)(vLeft.
Value
?? false) || (bool)(vRight.
Value
?? false), false, bo.SourceExpression);
386
MetaType mt = this.model.GetMetaType((Type)val.
Value
);
435
values.Add(sql.Value(discriminator.GetType(), when.Match.SqlType, ((SqlValue)when.Match).
Value
, true, tc.SourceExpression));
454
if (litElse != null && litElse.
Value
!= null && !(bool)litElse.
Value
) {
457
else if (litWhen != null && litWhen.
Value
!= null && (bool)litWhen.
Value
) {
471
return sqlValue.
Value
== null && !sqlValue.IsClientSpecified;
572
return sql.Value(typeof(bool), val.SqlType, !(bool)val.
Value
, val.IsClientSpecified, val.SourceExpression);
591
return sql.Value(uo.ClrType, uo.SqlType, DBConvert.ChangeType(val.
Value
, uo.ClrType), val.IsClientSpecified, val.SourceExpression);
650
return sql.Value(typeof(bool), this.typeProvider.From(typeof(int)), (val.
Value
== null) == (uo.NodeType == SqlNodeType.IsNull), val.IsClientSpecified, uo.SourceExpression);
915
if (val.
Value
== null) {
920
return sql.Value(m.ClrType, m.SqlType, p.GetValue(val.
Value
, null), val.IsClientSpecified, m.SourceExpression);
924
return sql.Value(m.ClrType, m.SqlType, f.GetValue(val.
Value
), val.IsClientSpecified, m.SourceExpression);
1181
if (select.Where != null && select.Where.NodeType == SqlNodeType.Value && (bool)((SqlValue)select.Where).
Value
) {
SqlClient\Query\SqlBooleanizer.cs (3)
24
if (value.
Value
!= null && value.
Value
.GetType() == typeof(bool) && (bool)value.
Value
== false) {
SqlClient\Query\SqlCaseSimplifier.cs (1)
185
bool value = (bool)lit.
Value
; // Must be bool because of caseType==typeof(bool).
SqlClient\Query\SqlComparer.cs (2)
126
return Object.Equals(((SqlValue)node1).
Value
, ((SqlValue)node2).
Value
);
SqlClient\Query\SqlExpander.cs (2)
278
if (!object.Equals(val.
Value
, val0.
Value
))
SqlClient\Query\SqlExpressionNullability.cs (1)
48
return ((SqlValue)expr).
Value
== null;
SqlClient\Query\SqlFormatter.cs (1)
442
this.FormatValue(value.
Value
);
SqlClient\Query\SqlMethodCallConverter.cs (14)
1510
string unescapedText = (string)((SqlValue)pattern).
Value
;
1544
string unescapedText = (string)((SqlValue)pattern).
Value
;
1578
string unescapedText = (string)((SqlValue)pattern).
Value
;
1607
if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).
Value
== null) {
1622
if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).
Value
== null) {
1643
if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).
Value
== null) {
1681
if (exprPart is SqlValue && ((SqlValue)exprPart).
Value
== null) {
1714
if (part is SqlValue && ((SqlValue)part).
Value
== null) {
1750
if (part is SqlValue && ((SqlValue)part).
Value
== null) {
1781
if (mc.Arguments[1] is SqlValue && ((SqlValue)mc.Arguments[1]).
Value
== null) {
1896
if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).
Value
== null) {
1899
if (mc.Arguments[1] is SqlValue && ((SqlValue)mc.Arguments[1]).
Value
== null) {
1964
if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).
Value
== null) {
2477
string unescapedText = (string)((SqlValue)pattern).
Value
;
SqlClient\Query\SqlParameterizer.cs (2)
117
pi = new SqlParameterInfo(p, cp.
Value
);
121
pi = new SqlParameterInfo(p, ((DateTime)cp.
Value
).TimeOfDay);
SqlClient\Query\SqlRetyper.cs (2)
231
DBConvert.ChangeType(val.
Value
, arg1.ClrType),
314
object clrValue = value.
Value
;
SqlClient\Query\SqlSupersetValidator.cs (1)
60
&& value.
Value
!= null) {
SqlClient\Query\SqlTopReducer.cs (1)
33
select.Top = sql.Value(val.ClrType, val.SqlType, val.
Value
, false, val.SourceExpression);
SqlClient\Query\TypeSource.cs (2)
83
if (val.
Value
!= null) {
87
sourceType = val.
Value
.GetType();
SqlClient\Reader\ObjectReaderCompiler.cs (4)
520
return Object.Equals(((SqlValue)node1).
Value
, ((SqlValue)node2).
Value
);
805
return this.GenerateConstant(value.ClrType, value.
Value
);
1955
this.GenerateConstant(locDiscriminator.LocalType, vMatch.
Value
);
SqlClient\SqlTypeSystemProvider.cs (3)
1241
if (val.
Value
is int) {
1247
return Create(arg0.SqlDbType, (int)val.
Value
);
1270
if (delLength != null && (int)delLength.
Value
== 0)