/// <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); }
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(", "); } } }
internal ParserToSqlCommand(OrderByPart op) : this(op, "", "") { }
/// <summary> /// Recupera as informações contidas dentro da clausula ORDER BY. /// </summary> /// <param name="op"></param> internal SelectStatement(OrderByPart op) : this(NativeSelectStatementReferences.Instance, op) { }