示例#1
0
 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(", ");
         }
     }
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <summary>
 /// Recupera as informações contidas dentro da clausula GROUP BY.
 /// </summary>
 /// <param name="gbp"></param>
 internal SelectStatement(GroupByPart gbp) : this(NativeSelectStatementReferences.Instance, gbp)
 {
 }