mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-18 14:20:55 +08:00
1449 lines
68 KiB
HTML
1449 lines
68 KiB
HTML
<!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<TKey, TValue>
|
||
| FreeSql API Docs </title>
|
||
<meta name="viewport" content="width=device-width">
|
||
<meta name="title" content="Interface ISelectGrouping<TKey, TValue>
|
||
| 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<TKey, TValue>
|
||
</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<TKey, TValue></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&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&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<TKey, TValue> 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><TKey, TValue></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&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<long> 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><<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_First__1_System_Linq_Expressions_Expression_System_Func_FreeSql_ISelectGroupingAggregate__0__1____0___.md&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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>>)</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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TReturn>></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&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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>>, 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<TReturn> FirstAsync<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TReturn>></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><TReturn></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&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<Func<ISelectGroupingAggregate<TKey, TValue>, Boolean>>)</h4>
|
||
<div class="markdown level1 summary"><p>按聚合条件过滤,Having(a => a.Count() > 10)</p>
|
||
</div>
|
||
<div class="markdown level1 conceptual"></div>
|
||
<h5 class="decalaration">Declaration</h5>
|
||
<div class="codewrapper">
|
||
<pre><code class="lang-csharp hljs">ISelectGrouping<TKey, TValue> Having(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, bool>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, <span class="xref">System.Boolean</span>>></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><TKey, TValue></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&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<Func<ISelectGroupingAggregate<TKey, TValue>, Boolean>>)</h4>
|
||
<div class="markdown level1 summary"><p>按聚合条件过滤,HavingIf(true, a => a.Count() > 10)</p>
|
||
</div>
|
||
<div class="markdown level1 conceptual"></div>
|
||
<h5 class="decalaration">Declaration</h5>
|
||
<div class="codewrapper">
|
||
<pre><code class="lang-csharp hljs">ISelectGrouping<TKey, TValue> HavingIf(bool condition, Expression<Func<ISelectGroupingAggregate<TKey, TValue>, bool>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, <span class="xref">System.Boolean</span>>></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><TKey, TValue></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&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<TKey, TValue> 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><TKey, TValue></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&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<TKey, TValue> 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><TKey, TValue></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&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<TMember>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TMember>>)</h4>
|
||
<div class="markdown level1 summary"><p>按列排序,OrderBy(a => 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<TKey, TValue> OrderBy<TMember>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TMember>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TMember>></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><TKey, TValue></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&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<TMember>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TMember>>)</h4>
|
||
<div class="markdown level1 summary"><p>按列倒向排序,OrderByDescending(a => 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<TKey, TValue> OrderByDescending<TMember>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TMember>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TMember>></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><TKey, TValue></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&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<TKey, TValue> 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><TKey, TValue></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&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<TKey, TValue> 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><TKey, TValue></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&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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>>)</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<TReturn> Select<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TReturn>></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><TReturn></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&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<TKey, TValue> 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><TKey, TValue></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&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<TKey, TValue> 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><TKey, TValue></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&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<TElement>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TElement>>)</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<TKey, TElement> ToDictionary<TElement>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TElement>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TElement>></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><TKey, TElement></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&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<TElement>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TElement>>, 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<Dictionary<TKey, TElement>> ToDictionaryAsync<TElement>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TElement>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TElement>></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><<span class="xref">System.Collections.Generic.Dictionary</span><TKey, TElement>></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&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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>>)</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<TReturn> ToList<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TReturn>></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><TReturn></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&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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>>, 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<List<TReturn>> ToListAsync<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TReturn>></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><<span class="xref">System.Collections.Generic.List</span><TReturn>></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&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&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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>>, 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<TReturn>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TReturn>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TReturn>></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&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<TDto>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TDto>>)</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<TDto> WithTempQuery<TDto>(Expression<Func<ISelectGroupingAggregate<TKey, TValue>, TDto>> 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><<span class="xref">System.Func</span><<a class="xref" href="FreeSql.ISelectGroupingAggregate-2.html">ISelectGroupingAggregate</a><TKey, TValue>, TDto>></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><TDto></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&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>
|