12 writes to Operand
System.Data.Linq (12)
SqlClient\Common\SqlNode.cs (1)
919
this.
Operand
= expr;
SqlClient\Common\SqlVisitor.cs (3)
292
uo.
Operand
= this.VisitExpression(uo.Operand);
312
c.
Operand
= this.VisitExpression(c.Operand);
316
t.
Operand
= this.VisitExpression(t.Operand);
SqlClient\Query\MethodCallConverter.cs (1)
331
t.
Operand
= this.VisitExpression(t.Operand);
SqlClient\Query\SqlBinder.cs (3)
533
uo.
Operand
= this.VisitExpression(uo.Operand);
565
uo.
Operand
= this.ConvertToFetchedExpression(uo.Operand);
618
uo.
Operand
= ((SqlOptionalValue)exp).HasValue;
SqlClient\Query\SqlBooleanMismatchVisitor.cs (2)
52
uo.
Operand
= this.VisitPredicate(uo.Operand);
54
uo.
Operand
= this.VisitExpression(uo.Operand);
SqlClient\Query\SqlMethodCallConverter.cs (1)
656
uo.
Operand
= expr;
SqlClient\Query\SqlTypeConverter.cs (1)
72
uo.
Operand
= this.VisitExpression(uo.Operand);
90 references to Operand
System.Data.Linq (90)
SqlClient\Common\SqlNode.cs (1)
848
expr = exprAsUnary.
Operand
;
SqlClient\Common\SqlVisitor.cs (4)
292
uo.Operand = this.VisitExpression(uo.
Operand
);
312
c.Operand = this.VisitExpression(c.
Operand
);
316
t.Operand = this.VisitExpression(t.
Operand
);
635
return this.RefersToColumn(((SqlUnary)exp).
Operand
, col);
SqlClient\Query\MethodCallConverter.cs (5)
331
t.Operand = this.VisitExpression(t.
Operand
);
333
Type originalType = model.GetMetaType(t.
Operand
.ClrType).InheritanceRoot.Type;
340
return t.
Operand
;
343
t.
Operand
.SetClrType(treatType);
344
return t.
Operand
;
SqlClient\Query\SqlBinder.cs (27)
412
obj = ((SqlUnary)obj).
Operand
;
485
return ApplyTreat(unary.
Operand
, type);
533
uo.Operand = this.VisitExpression(uo.
Operand
);
544
if (uo.
Operand
.NodeType==SqlNodeType.OuterJoinedValue) {
545
SqlUnary ojv = uo.
Operand
as SqlUnary;
546
if (ojv.
Operand
.NodeType == SqlNodeType.OptionalValue) {
547
SqlOptionalValue ov = (SqlOptionalValue)ojv.
Operand
;
554
else if (ojv.
Operand
.NodeType == SqlNodeType.TypeCase) {
555
SqlTypeCase tc = (SqlTypeCase)ojv.
Operand
;
565
uo.Operand = this.ConvertToFetchedExpression(uo.
Operand
);
570
if ((uo.NodeType == SqlNodeType.Not || uo.NodeType == SqlNodeType.Not2V) && uo.
Operand
.NodeType == SqlNodeType.Value) {
571
SqlValue val = (SqlValue)uo.
Operand
;
575
if (SqlExpressionNullability.CanBeNull(uo.
Operand
) != false) {
578
new [] { new SqlWhen(uo.
Operand
, sql.ValueFromObject(1, false, uo.SourceExpression)) },
585
return sql.Unary(SqlNodeType.Not, uo.
Operand
);
589
else if (uo.NodeType == SqlNodeType.Convert && uo.
Operand
.NodeType == SqlNodeType.Value) {
590
SqlValue val = (SqlValue)uo.
Operand
;
594
bool? canBeNull = SqlExpressionNullability.CanBeNull(uo.
Operand
);
598
SqlExpression exp = uo.
Operand
;
623
SqlClientCase sc = (SqlClientCase)uo.
Operand
;
634
SqlTypeCase tc = (SqlTypeCase)uo.
Operand
;
649
SqlValue val = (SqlValue)uo.
Operand
;
655
return ApplyTreat(VisitExpression(uo.
Operand
), uo.ClrType);
817
SqlNode n = this.AccessMember(m, ((SqlUnary)exp).
Operand
);
1225
SqlExpression o = ((SqlUnary)node).
Operand
;
1278
SqlExpression o = ((SqlUnary)node).
Operand
;
1454
node = ((SqlUnary)node).
Operand
;
SqlClient\Query\SqlBooleanMismatchVisitor.cs (2)
52
uo.Operand = this.VisitPredicate(uo.
Operand
);
54
uo.Operand = this.VisitExpression(uo.
Operand
);
SqlClient\Query\SqlColumnizer.cs (1)
161
return IsClientOnly(((SqlUnary)expr).
Operand
);
SqlClient\Query\SqlComparer.cs (4)
69
return AreEqual(((SqlUnary)node1).
Operand
, ((SqlUnary)node2).
Operand
);
97
return sun1.ClrType == sun2.ClrType && sun1.SqlType == sun2.SqlType && AreEqual(sun1.
Operand
, sun2.
Operand
);
SqlClient\Query\SqlDuplicator.cs (2)
291
return new SqlUnary(SqlNodeType.Treat, t.ClrType, t.SqlType, (SqlExpression)this.Visit(t.
Operand
), t.SourceExpression);
294
return new SqlUnary(uo.NodeType, uo.ClrType, uo.SqlType, (SqlExpression)this.Visit(uo.
Operand
), uo.Method, uo.SourceExpression);
SqlClient\Query\SqlExpander.cs (1)
309
values.Add(su.
Operand
);
SqlClient\Query\SqlExpressionNullability.cs (1)
77
return CanBeNull(uop.
Operand
);
SqlClient\Query\SqlFlattener.cs (1)
219
this.FlattenGroupByExpression(exprs, ((SqlUnary)expr).
Operand
);
SqlClient\Query\SqlFormatter.cs (11)
128
this.VisitWithParens(uo.
Operand
, uo);
133
this.VisitWithParens(uo.
Operand
, uo);
145
if (uo.
Operand
== null) {
148
this.Visit(uo.
Operand
);
155
this.VisitWithParens(uo.
Operand
, uo);
163
if(uo.
Operand
.SqlType.CanSuppressSizeForConversionToString) {
168
this.Visit(uo.
Operand
);
174
this.Visit(uo.
Operand
); // no op
286
this.Visit(c.
Operand
);
289
if (c.
Operand
.SqlType.CanSuppressSizeForConversionToString) {
299
this.Visit(t.
Operand
);
SqlClient\Query\SqlMethodCallConverter.cs (3)
49
uo.ClrType == typeof(char) || uo.
Operand
.ClrType == typeof(char);
653
SqlExpression expr = uo.
Operand
;
655
expr = this.VisitExpression(uo.
Operand
);
SqlClient\Query\SqlMethodTransformer.cs (1)
60
SqlExpression expr = unary.
Operand
;
SqlClient\Query\SqlRetyper.cs (9)
32
if (uo.NodeType != SqlNodeType.Convert && uo.
Operand
!= null && uo.
Operand
.SqlType != null) {
33
uo.SetSqlType(this.typeProvider.PredictTypeForUnary(uo.NodeType, uo.
Operand
.SqlType));
66
if (CanDbConvert(conv.
Operand
.ClrType, bo.Right.ClrType)
67
&& conv.
Operand
.SqlType.ComparePrecedenceTo(bo.Right.SqlType) != 1) {
68
return VisitBinaryOperator(new SqlBinary(bo.NodeType, bo.ClrType, bo.SqlType, conv.
Operand
, bo.Right));
73
if (CanDbConvert(conv.
Operand
.ClrType, bo.Left.ClrType)
74
&& conv.
Operand
.SqlType.ComparePrecedenceTo(bo.Left.SqlType) != 1) {
75
return VisitBinaryOperator(new SqlBinary(bo.NodeType, bo.ClrType, bo.SqlType, bo.Left, conv.
Operand
));
SqlClient\Query\SqlTypeConverter.cs (7)
72
uo.Operand = this.VisitExpression(uo.
Operand
);
76
ProviderType oldSqlType = uo.
Operand
.SqlType;
78
Type oldClrType = TypeSystem.GetNonNullableType(uo.
Operand
.ClrType);
88
return sql.FunctionCall(uo.ClrType, "NCHAR", new SqlExpression[] { uo.
Operand
}, uo.SourceExpression);
101
return sql.FunctionCall(newClrType, sql.TypeProvider.From(typeof(int)), "UNICODE", new SqlExpression[] { uo.
Operand
}, uo.SourceExpression);
105
return ConvertDoubleToString(uo.
Operand
, uo.ClrType);
108
return ConvertBitToString(uo.
Operand
, uo.ClrType);
SqlClient\Query\Translator.cs (1)
449
SqlLink link = expr.
Operand
as SqlLink;
SqlClient\Reader\ObjectReaderCompiler.cs (9)
380
return CanBeCompared(((SqlUnary)node).
Operand
);
528
return AreSimilar(((SqlUnary)node1).
Operand
, ((SqlUnary)node2).
Operand
);
748
return this.Generate(((SqlUnary)node).
Operand
);
826
System.Diagnostics.Debug.Assert(TypeSystem.IsNullableType(u.
Operand
.ClrType));
827
this.GenerateExpressionForType(u.
Operand
, u.
Operand
.ClrType);
828
LocalBuilder loc = gen.DeclareLocal(u.
Operand
.ClrType);
831
this.GenerateGetValue(u.
Operand
.ClrType);