コード例 #1
0
        /// <summary>
        ///     Generates the SQL text for the whole query.
        /// </summary>
        /// <param name="sb">The SQL text formatter.</param>
        public void RenderSql(SqlBuilderContext sb)
        {
            SelectClause.RenderSql(sb);

            FromClause.RenderSql(sb);

            WhereClause.RenderSql(sb, this);

            GroupByClause.RenderSql(sb);

            HavingClause.RenderSql(sb);

            OrderClause.RenderSql(sb);

            if (!string.IsNullOrEmpty(ForClause))
            {
                sb.AppendOnNewLine(ForClause);
            }
        }