internal ParserToSqlCommand(GroupByPart gbp, string quoteExpressionBegin, string quoteExpressionEnd) { _quoteExpressionBegin = quoteExpressionBegin; _quoteExpressionEnd = quoteExpressionEnd; for (int i = 0; i < gbp.Expressions.Count; i++) { ColumnName(gbp.Expressions[i]); if (i + 1 != gbp.Expressions.Count) { sqlCommand.Append(", "); } } }
/// <summary> /// Recupera as informações contidas dentro da clausula GROUP BY. /// </summary> /// <param name="gbp"></param> internal SelectStatement(ISelectStatementReferences references, GroupByPart gbp) { if (references == null) { throw new ArgumentNullException("references"); } _references = references; foreach (SqlExpression sqle in gbp.Expressions) { ColumnName(sqle); } _columnsInfoList = new List <ColumnInfo>(_columnsInfo.Values); }
/// <summary> /// Recupera as informações contidas dentro da clausula GROUP BY. /// </summary> /// <param name="gbp"></param> internal SelectStatement(GroupByPart gbp) : this(NativeSelectStatementReferences.Instance, gbp) { }