10 writes to Value
System.Data.Linq (10)
SqlClient\Common\SqlNode.cs (1)
1111
this.
Value
= value;
SqlClient\Common\SqlVisitor.cs (2)
492
when.
Value
= this.VisitExpression(when.Value);
511
when.
Value
= this.VisitExpression(when.Value);
SqlClient\Query\SqlBinder.cs (1)
1333
when.
Value
= this.ConvertToFetchedExpression(when.Value);
SqlClient\Query\SqlBooleanMismatchVisitor.cs (1)
82
when.
Value
= this.VisitExpression(when.Value);
SqlClient\Query\SqlCaseSimplifier.cs (2)
100
c.Whens[compareWhen].
Value
= VisitExpression(c.Whens[compareWhen].Value);
109
when.
Value
= this.VisitExpression(when.Value);
SqlClient\Query\SqlColumnizer.cs (1)
98
c.Whens[i].
Value
= this.VisitExpression(c.Whens[i].Value);
SqlClient\Query\SqlRetyper.cs (2)
172
when.
Value
= sql.UnaryConvert(when.Value.ClrType, type, when.Value, when.Value.SourceExpression);
194
when.
Value
= sql.UnaryConvert(when.Value.ClrType, type, when.Value, when.Value.SourceExpression);
52 references to Value
System.Data.Linq (52)
SqlClient\Common\SqlFactory.cs (1)
433
return new SqlSearchedCase(whens[0].
Value
.ClrType, whens, @else, sourceExpression);
SqlClient\Common\SqlNode.cs (2)
1178
get { return this.whens[0].
Value
.SqlType; }
1222
get { return this.whens[0].
Value
.SqlType; }
SqlClient\Common\SqlVisitor.cs (2)
492
when.Value = this.VisitExpression(when.
Value
);
511
when.Value = this.VisitExpression(when.
Value
);
SqlClient\Query\SqlBinder.cs (6)
392
types.UnionWith(GetPossibleTypes(when.
Value
));
452
SqlValue litWhen = c.Whens[0].
Value
as SqlValue;
455
return this.VisitExpression(sql.Binary(SqlNodeType.And, c.Whens[0].Match, c.Whens[0].
Value
));
735
SqlExpression newValue = (SqlExpression)AccessMember(m, when.
Value
);
753
SqlExpression value = (SqlExpression)AccessMember(m, when.
Value
);
1333
when.Value = this.ConvertToFetchedExpression(when.
Value
);
SqlClient\Query\SqlBooleanMismatchVisitor.cs (1)
82
when.Value = this.VisitExpression(when.
Value
);
SqlClient\Query\SqlCaseSimplifier.cs (10)
63
if (when.
Value
.NodeType != SqlNodeType.Value) {
80
object whenVal = Eval(when.
Value
);
81
bool eq = when.
Value
.SqlType.AreValuesEqual(whenVal, val);
100
c.Whens[compareWhen].Value = VisitExpression(c.Whens[compareWhen].
Value
);
109
when.Value = this.VisitExpression(when.
Value
);
110
if (!SqlComparer.AreEqual(c.Whens[compareWhen].
Value
, when.
Value
)) {
113
allValuesLiteral = allValuesLiteral && when.
Value
.NodeType == SqlNodeType.Value;
119
SqlExpression rewrite = TryToConsolidateAllValueExpressions(newWhens.Count, c.Whens[compareWhen].
Value
);
184
SqlValue lit = (SqlValue)newWhens[i].
Value
; // Must be SqlValue because of allValuesLiteral.
SqlClient\Query\SqlColumnizer.cs (1)
98
c.Whens[i].Value = this.VisitExpression(c.Whens[i].
Value
);
SqlClient\Query\SqlComparer.cs (5)
154
!AreEqual(c1.Whens[i].
Value
, c2.Whens[i].
Value
))
183
!AreEqual(c1.Whens[i].
Value
, c2.Whens[i].
Value
))
296
SqlExpression result = sc.Whens[0].
Value
;
SqlClient\Query\SqlDuplicator.cs (2)
312
whens[i] = new SqlWhen(this.VisitExpression(when.Match), this.VisitExpression(when.
Value
));
330
whens[i] = new SqlWhen(this.VisitExpression(when.Match), this.VisitExpression(when.
Value
));
SqlClient\Query\SqlExpressionNullability.cs (1)
31
return CanBeNull(sc.Whens.Select(w => w.
Value
));
SqlClient\Query\SqlFormatter.cs (3)
1099
this.Visit(when.
Value
);
1127
this.Visit(when.
Value
);
1133
this.Visit(when.
Value
);
SqlClient\Query\SqlRetyper.cs (14)
160
ProviderType type = c.Whens[0].
Value
.SqlType;
162
ProviderType whenType = c.Whens[i].
Value
.SqlType;
171
foreach (SqlWhen when in c.Whens.Where(w => w.
Value
.SqlType != type && !w.
Value
.SqlType.IsRuntimeOnlyType)) {
172
when.Value = sql.UnaryConvert(when.
Value
.ClrType, type, when.
Value
, when.
Value
.SourceExpression);
186
ProviderType type = c.Whens[0].
Value
.SqlType;
188
ProviderType whenType = c.Whens[i].
Value
.SqlType;
193
foreach (SqlWhen when in c.Whens.Where(w => w.
Value
.SqlType != type && !w.
Value
.SqlType.IsRuntimeOnlyType)) {
194
when.Value = sql.UnaryConvert(when.
Value
.ClrType, type, when.
Value
, when.
Value
.SourceExpression);
SqlClient\Reader\ObjectReaderCompiler.cs (4)
414
!CanBeCompared(c1.Whens[i].
Value
)) {
573
!AreSimilar(c1.Whens[i].
Value
, c2.Whens[i].
Value
))
2038
this.GenerateExpressionForType(when.
Value
, ssc.ClrType);