Esempio n. 1
0
 /// <summary>
 /// Recupera as informações contidas dentro da clausula ORDER BY.
 /// </summary>
 /// <param name="references"></param>
 /// <param name="op"></param>
 internal SelectStatement(ISelectStatementReferences references, OrderByPart op)
 {
     if (references == null)
     {
         throw new ArgumentNullException("references");
     }
     _references = references;
     foreach (OrderByExpression oe in op.OrderByExpressions)
     {
         ColumnName(oe.Expression);
     }
     _columnsInfoList = new List <ColumnInfo>(_columnsInfo.Values);
 }
Esempio n. 2
0
 internal ParserToSqlCommand(OrderByPart op, string quoteExpressionBegin, string quoteExpressionEnd)
 {
     _quoteExpressionBegin = quoteExpressionBegin;
     _quoteExpressionEnd   = quoteExpressionEnd;
     for (int i = 0; i < op.OrderByExpressions.Count; i++)
     {
         ColumnName(op.OrderByExpressions[i].Expression);
         if (op.OrderByExpressions[i].Asc)
         {
             sqlCommand.Append(" ASC");
         }
         else
         {
             sqlCommand.Append(" DESC");
         }
         if (i + 1 != op.OrderByExpressions.Count)
         {
             sqlCommand.Append(", ");
         }
     }
 }
Esempio n. 3
0
 internal ParserToSqlCommand(OrderByPart op) : this(op, "", "")
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Recupera as informações contidas dentro da clausula ORDER BY.
 /// </summary>
 /// <param name="op"></param>
 internal SelectStatement(OrderByPart op) : this(NativeSelectStatementReferences.Instance, op)
 {
 }