Exemple #1
0
        public override bool Equals(object other)
        {
            if (other == this)
            {
                return(true);
            }
            ExpressionColumn column = other as ExpressionColumn;

            return((column != null) && this.Equals((Expression)column));
        }
Exemple #2
0
 public static void CheckColumnsResolved(List <Expression> set)
 {
     if ((set != null) && (set.Count != 0))
     {
         Expression       expression = set[0];
         StringBuilder    builder    = new StringBuilder();
         ExpressionColumn column     = expression as ExpressionColumn;
         if (column == null)
         {
             throw Error.GetError(0x157d, builder.ToString());
         }
         if (column.schema != null)
         {
             builder.Append(column.schema + ".");
         }
         if (column.TableName != null)
         {
             builder.Append(column.TableName + ".");
         }
         builder.Append(expression.GetColumn());
         throw Error.GetError(0x157d, builder + column.GetColumnName());
     }
 }