public override void WriteSql(StringBuilder sql)
        {
            ColumnFragment columnFragment = Column as ColumnFragment;

            Debug.Assert(columnFragment != null);
            columnFragment.WriteSql(sql);
            sql.AppendFormat(" {0}", Ascending ? "ASC" : "DESC");
        }
Esempio n. 2
0
 public override void WriteSql(StringBuilder sql)
 {
     Argument.WriteSql(sql);
     if (IsNegated)
     {
         sql.Append(" NOT ");
     }
     sql.Append(" IN ( ");
     foreach (LiteralFragment lit in InList)
     {
         sql.Append(lit).Append(",");
     }
     sql.Length = sql.Length - 1;
     sql.Append(" )");
 }