Files
FreeSql/api/FreeSql.ISelectGrouping-2.html
2023-07-07 17:27:43 +00:00

1449 lines
68 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Interface ISelectGrouping&lt;TKey, TValue&gt;
| FreeSql API Docs </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Interface ISelectGrouping&lt;TKey, TValue&gt;
| FreeSql API Docs ">
<meta name="generator" content="docfx 2.59.4.0">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
<link rel="stylesheet" href="../styles/docfx.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="../">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src=".././images/logo.svg" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list">Search Results for <span></span></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="FreeSql.ISelectGrouping`2">
<h1 id="FreeSql_ISelectGrouping_2" data-uid="FreeSql.ISelectGrouping`2" class="text-break">Interface ISelectGrouping&lt;TKey, TValue&gt;
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="FreeSql.html">FreeSql</a></h6>
<h6><strong>Assembly</strong>: FreeSql.dll</h6>
<h5 id="FreeSql_ISelectGrouping_2_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public interface ISelectGrouping&lt;TKey, TValue&gt;</code></pre>
</div>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TKey</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">TValue</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Count.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Count%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L139">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Count_" data-uid="FreeSql.ISelectGrouping`2.Count*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Count" data-uid="FreeSql.ISelectGrouping`2.Count">Count()</h4>
<div class="markdown level1 summary"><p>查询的记录数量</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">long Count()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Count_System_Int64__.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Count(System.Int64%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L145">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Count_" data-uid="FreeSql.ISelectGrouping`2.Count*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Count_System_Int64__" data-uid="FreeSql.ISelectGrouping`2.Count(System.Int64@)">Count(out Int64)</h4>
<div class="markdown level1 summary"><p>查询的记录数量以参数out形式返回</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Count(out long count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">count</span></td>
<td><p>返回的变量</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_CountAsync_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.CountAsync(System.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L16">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_CountAsync_" data-uid="FreeSql.ISelectGrouping`2.CountAsync*"></a>
<h4 id="FreeSql_ISelectGrouping_2_CountAsync_System_Threading_CancellationToken_" data-uid="FreeSql.ISelectGrouping`2.CountAsync(System.Threading.CancellationToken)">CountAsync(CancellationToken)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">Task&lt;long&gt; CountAsync(CancellationToken cancellationToken = default(CancellationToken))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.CancellationToken</span></td>
<td><span class="parametername">cancellationToken</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Int64</span>&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_First__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.First%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L65">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_First_" data-uid="FreeSql.ISelectGrouping`2.First*"></a>
<h4 id="FreeSql_ISelectGrouping_2_First__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.First``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">First&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>执行SQL查询返回指定字段的记录的第一条记录记录不存在时返回 TReturn 默认值</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">TReturn First&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt; select)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TReturn&gt;&gt;</td>
<td><span class="parametername">select</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">TReturn</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TReturn</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_FirstAsync__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.FirstAsync%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L19">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_FirstAsync_" data-uid="FreeSql.ISelectGrouping`2.FirstAsync*"></a>
<h4 id="FreeSql_ISelectGrouping_2_FirstAsync__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___System_Threading_CancellationToken_" data-uid="FreeSql.ISelectGrouping`2.FirstAsync``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}},System.Threading.CancellationToken)">FirstAsync&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt;, CancellationToken)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">Task&lt;TReturn&gt; FirstAsync&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt; select, CancellationToken cancellationToken = default(CancellationToken))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TReturn&gt;&gt;</td>
<td><span class="parametername">select</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Threading.CancellationToken</span></td>
<td><span class="parametername">cancellationToken</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.Tasks.Task</span>&lt;TReturn&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TReturn</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Having_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1__System_Boolean___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Having(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2CSystem.Boolean%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L28">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Having_" data-uid="FreeSql.ISelectGrouping`2.Having*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Having_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1__System_Boolean___" data-uid="FreeSql.ISelectGrouping`2.Having(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},System.Boolean}})">Having(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, Boolean&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>按聚合条件过滤Having(a =&gt; a.Count() &gt; 10)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Having(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, bool&gt;&gt; exp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, <span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">exp</span></td>
<td><p>lambda表达式</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_HavingIf_System_Boolean_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1__System_Boolean___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.HavingIf(System.Boolean%2CSystem.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2CSystem.Boolean%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L35">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_HavingIf_" data-uid="FreeSql.ISelectGrouping`2.HavingIf*"></a>
<h4 id="FreeSql_ISelectGrouping_2_HavingIf_System_Boolean_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1__System_Boolean___" data-uid="FreeSql.ISelectGrouping`2.HavingIf(System.Boolean,System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},System.Boolean}})">HavingIf(Boolean, Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, Boolean&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>按聚合条件过滤HavingIf(true, a =&gt; a.Count() &gt; 10)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; HavingIf(bool condition, Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, bool&gt;&gt; exp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">condition</span></td>
<td><p>true 时生效</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, <span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">exp</span></td>
<td><p>lambda表达式</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Limit_System_Int32_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Limit(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L112">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Limit_" data-uid="FreeSql.ISelectGrouping`2.Limit*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Limit_System_Int32_" data-uid="FreeSql.ISelectGrouping`2.Limit(System.Int32)">Limit(Int32)</h4>
<div class="markdown level1 summary"><p>查询多少条数据</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Limit(int limit)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">limit</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Offset_System_Int32_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Offset(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L106">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Offset_" data-uid="FreeSql.ISelectGrouping`2.Offset*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Offset_System_Int32_" data-uid="FreeSql.ISelectGrouping`2.Offset(System.Int32)">Offset(Int32)</h4>
<div class="markdown level1 summary"><p>查询向后偏移行数</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Offset(int offset)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">offset</span></td>
<td><p>行数</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_OrderBy__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.OrderBy%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L43">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_OrderBy_" data-uid="FreeSql.ISelectGrouping`2.OrderBy*"></a>
<h4 id="FreeSql_ISelectGrouping_2_OrderBy__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.OrderBy``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">OrderBy&lt;TMember&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TMember&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>按列排序OrderBy(a =&gt; a.Time)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; OrderBy&lt;TMember&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TMember&gt;&gt; column)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TMember&gt;&gt;</td>
<td><span class="parametername">column</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TMember</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_OrderByDescending__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.OrderByDescending%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L49">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_OrderByDescending_" data-uid="FreeSql.ISelectGrouping`2.OrderByDescending*"></a>
<h4 id="FreeSql_ISelectGrouping_2_OrderByDescending__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.OrderByDescending``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">OrderByDescending&lt;TMember&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TMember&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>按列倒向排序OrderByDescending(a =&gt; a.Time)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; OrderByDescending&lt;TMember&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TMember&gt;&gt; column)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TMember&gt;&gt;</td>
<td><span class="parametername">column</span></td>
<td><p></p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TMember</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Page_FreeSql_Internal_Model_BasePagingInfo_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Page(FreeSql.Internal.Model.BasePagingInfo)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L133">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Page_" data-uid="FreeSql.ISelectGrouping`2.Page*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Page_FreeSql_Internal_Model_BasePagingInfo_" data-uid="FreeSql.ISelectGrouping`2.Page(FreeSql.Internal.Model.BasePagingInfo)">Page(BasePagingInfo)</h4>
<div class="markdown level1 summary"><p>分页</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Page(BasePagingInfo pagingInfo)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.Internal.Model.BasePagingInfo.html">BasePagingInfo</a></td>
<td><span class="parametername">pagingInfo</span></td>
<td><p>分页信息</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Page_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Page(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L126">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Page_" data-uid="FreeSql.ISelectGrouping`2.Page*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Page_System_Int32_System_Int32_" data-uid="FreeSql.ISelectGrouping`2.Page(System.Int32,System.Int32)">Page(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>分页</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Page(int pageNumber, int pageSize)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">pageNumber</span></td>
<td><p>第几页</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">pageSize</span></td>
<td><p>每页多少</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Select__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Select%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L70">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Select_" data-uid="FreeSql.ISelectGrouping`2.Select*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Select__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.Select``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">Select&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>【linq to sql】专用方法不建议直接使用</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">List&lt;TReturn&gt; Select&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt; select)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TReturn&gt;&gt;</td>
<td><span class="parametername">select</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.List</span>&lt;TReturn&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TReturn</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Skip_System_Int32_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Skip(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L100">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Skip_" data-uid="FreeSql.ISelectGrouping`2.Skip*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Skip_System_Int32_" data-uid="FreeSql.ISelectGrouping`2.Skip(System.Int32)">Skip(Int32)</h4>
<div class="markdown level1 summary"><p>查询向后偏移行数</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Skip(int offset)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">offset</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_Take_System_Int32_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.Take(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L118">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_Take_" data-uid="FreeSql.ISelectGrouping`2.Take*"></a>
<h4 id="FreeSql_ISelectGrouping_2_Take_System_Int32_" data-uid="FreeSql.ISelectGrouping`2.Take(System.Int32)">Take(Int32)</h4>
<div class="markdown level1 summary"><p>查询多少条数据</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelectGrouping&lt;TKey, TValue&gt; Take(int limit)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">limit</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelectGrouping-2.html">ISelectGrouping</a>&lt;TKey, TValue&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_ToDictionary__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.ToDictionary%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L58">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_ToDictionary_" data-uid="FreeSql.ISelectGrouping`2.ToDictionary*"></a>
<h4 id="FreeSql_ISelectGrouping_2_ToDictionary__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.ToDictionary``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">ToDictionary&lt;TElement&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TElement&gt;&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">Dictionary&lt;TKey, TElement&gt; ToDictionary&lt;TElement&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TElement&gt;&gt; elementSelector)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TElement&gt;&gt;</td>
<td><span class="parametername">elementSelector</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.Dictionary</span>&lt;TKey, TElement&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TElement</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_ToDictionaryAsync__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.ToDictionaryAsync%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L18">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_ToDictionaryAsync_" data-uid="FreeSql.ISelectGrouping`2.ToDictionaryAsync*"></a>
<h4 id="FreeSql_ISelectGrouping_2_ToDictionaryAsync__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___System_Threading_CancellationToken_" data-uid="FreeSql.ISelectGrouping`2.ToDictionaryAsync``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}},System.Threading.CancellationToken)">ToDictionaryAsync&lt;TElement&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TElement&gt;&gt;, CancellationToken)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">Task&lt;Dictionary&lt;TKey, TElement&gt;&gt; ToDictionaryAsync&lt;TElement&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TElement&gt;&gt; elementSelector, CancellationToken cancellationToken = default(CancellationToken))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TElement&gt;&gt;</td>
<td><span class="parametername">elementSelector</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Threading.CancellationToken</span></td>
<td><span class="parametername">cancellationToken</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Collections.Generic.Dictionary</span>&lt;TKey, TElement&gt;&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TElement</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_ToList__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.ToList%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L57">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_ToList_" data-uid="FreeSql.ISelectGrouping`2.ToList*"></a>
<h4 id="FreeSql_ISelectGrouping_2_ToList__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.ToList``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">ToList&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>执行SQL查询返回指定字段的记录记录不存在时返回 Count 为 0 的列表</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">List&lt;TReturn&gt; ToList&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt; select)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TReturn&gt;&gt;</td>
<td><span class="parametername">select</span></td>
<td><p>选择列</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.List</span>&lt;TReturn&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TReturn</span></td>
<td><p>返回类型</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_ToListAsync__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.ToListAsync%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L17">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_ToListAsync_" data-uid="FreeSql.ISelectGrouping`2.ToListAsync*"></a>
<h4 id="FreeSql_ISelectGrouping_2_ToListAsync__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___System_Threading_CancellationToken_" data-uid="FreeSql.ISelectGrouping`2.ToListAsync``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}},System.Threading.CancellationToken)">ToListAsync&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt;, CancellationToken)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">Task&lt;List&lt;TReturn&gt;&gt; ToListAsync&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt; select, CancellationToken cancellationToken = default(CancellationToken))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TReturn&gt;&gt;</td>
<td><span class="parametername">select</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Threading.CancellationToken</span></td>
<td><span class="parametername">cancellationToken</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Collections.Generic.List</span>&lt;TReturn&gt;&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TReturn</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_ToSql_System_String_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.ToSql(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L85">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_ToSql_" data-uid="FreeSql.ISelectGrouping`2.ToSql*"></a>
<h4 id="FreeSql_ISelectGrouping_2_ToSql_System_String_" data-uid="FreeSql.ISelectGrouping`2.ToSql(System.String)">ToSql(String)</h4>
<div class="markdown level1 summary"><p>返回即将执行的SQL语句</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string ToSql(string field)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">field</span></td>
<td><p>指定字段</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_ToSql__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___FreeSql_FieldAliasOptions_.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.ToSql%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D%2CFreeSql.FieldAliasOptions)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L79">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_ToSql_" data-uid="FreeSql.ISelectGrouping`2.ToSql*"></a>
<h4 id="FreeSql_ISelectGrouping_2_ToSql__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___FreeSql_FieldAliasOptions_" data-uid="FreeSql.ISelectGrouping`2.ToSql``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}},FreeSql.FieldAliasOptions)">ToSql&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt;, FieldAliasOptions)</h4>
<div class="markdown level1 summary"><p>返回即将执行的SQL语句</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string ToSql&lt;TReturn&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TReturn&gt;&gt; select, FieldAliasOptions fieldAlias = FieldAliasOptions.AsIndex)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TReturn&gt;&gt;</td>
<td><span class="parametername">select</span></td>
<td><p>选择列</p>
</td>
</tr>
<tr>
<td><a class="xref" href="FreeSql.FieldAliasOptions.html">FieldAliasOptions</a></td>
<td><span class="parametername">fieldAlias</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TReturn</span></td>
<td><p>返回类型</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2_WithTempQuery__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602.WithTempQuery%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7BFreeSql.ISelectGroupingAggregate%7B%600%2C%601%7D%2C%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L93">View Source</a>
</span>
<a id="FreeSql_ISelectGrouping_2_WithTempQuery_" data-uid="FreeSql.ISelectGrouping`2.WithTempQuery*"></a>
<h4 id="FreeSql_ISelectGrouping_2_WithTempQuery__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___" data-uid="FreeSql.ISelectGrouping`2.WithTempQuery``1(System.Linq.Expressions.Expression{System.Func{FreeSql.ISelectGroupingAggregate{`0,`1},``0}})">WithTempQuery&lt;TDto&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TDto&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>嵌套查询 select * from ( select ... from table group by ... ) a</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">ISelect&lt;TDto&gt; WithTempQuery&lt;TDto&gt;(Expression&lt;Func&lt;ISelectGroupingAggregate&lt;TKey, TValue&gt;, TDto&gt;&gt; selector)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a>&lt;TKey, TValue&gt;, TDto&gt;&gt;</td>
<td><span class="parametername">selector</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.ISelect-1.html">ISelect</a>&lt;TDto&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TDto</span></td>
<td></td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_ISelectGrouping_2.md&amp;value=---%0Auid%3A%20FreeSql.ISelectGrouping%602%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/ISelect/ISelectGrouping.cs/#L11" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<h5>In This Article</h5>
<div></div>
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
<span>Generated by <strong>DocFX</strong></span>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/main.js"></script>
</body>
</html>