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