Table of Contents

DapperGroupByTableQuery<TTable> 类

命名空间
Dapper.Shadow.GroupBy
程序集
Dapper.Shadow.dll

对Table进行分组查询

public class DapperGroupByTableQuery<TTable> : GroupByTableQuery<TTable>, IGroupByView, IDataQuery, IDataFilter, IWrapper<ITableView>, IDapperSource, ITableView, ISqlEntity where TTable : ITable

类型参数

TTable
继承
object
GroupByBase
GroupByBase<Logic>
DapperGroupByTableQuery<TTable>
实现
IGroupByView
IDataQuery
IWrapper<ITableView>
继承成员
GroupByBase.GroupByFields
GroupByBase.Columns
GroupByBase.GetFields()
扩展方法

构造函数

DapperGroupByTableQuery(IExecutor, TTable, ISqlLogic, IField[], Logic)

对Table进行分组查询

public DapperGroupByTableQuery(IExecutor executor, TTable table, ISqlLogic where, IField[] fields, Logic having)

参数

executor IExecutor

执行器

table TTable

where ISqlLogic

查询条件

fields IField[]

字段

having Logic

分组查询条件

属性

Executor

执行器

public IExecutor Executor { get; }

属性值

IExecutor

方法

Apply(Func<TTable, IAggregateField>, Func<Logic, IAggregateField, Logic>)

按逻辑查询

public GroupByTableQuery<TTable> Apply(Func<TTable, IAggregateField> aggregate, Func<Logic, IAggregateField, Logic> query)

参数

aggregate Func<TTable, IAggregateField>

聚合

query Func<Logic, IAggregateField, Logic>

查询

返回

GroupByTableQuery<TTable>