DapperGroupByMultiQuery 类
对MultiQuery进行分组查询
public class DapperGroupByMultiQuery : GroupByMultiQuery, IGroupByView, IDataQuery, IDataFilter, IDapperSource, ITableView, ISqlEntity
- 继承
-
objectDapperGroupByMultiQuery
- 实现
- 继承成员
- 扩展方法
构造函数
DapperGroupByMultiQuery(IExecutor, IMultiView, IField[], Logic)
对MultiQuery进行分组查询
public DapperGroupByMultiQuery(IExecutor executor, IMultiView multiTable, IField[] fields, Logic filter)
参数
executor
IExecutor执行器
multiTable
IMultiView多表(联表)
fields
IField[]字段
filter
Logic过滤条件
属性
Executor
执行器
public IExecutor Executor { get; }
属性值
方法
Apply<TAliasTable>(string, Func<TAliasTable, IAggregateField>, Func<Logic, IAggregateField, Logic>)
按逻辑查询
public DapperGroupByMultiQuery Apply<TAliasTable>(string tableName, Func<TAliasTable, IAggregateField> aggregate, Func<Logic, IAggregateField, Logic> query) where TAliasTable : IAliasTable
参数
tableName
string表名
aggregate
Func<TAliasTable, IAggregateField>聚合
query
Func<Logic, IAggregateField, Logic>查询
返回
类型参数
TAliasTable
Apply<TTable>(string, Func<TTable, IColumn>, Func<IPrefixField, IAggregateField>, Func<Logic, IAggregateField, Logic>)
按逻辑查询
public DapperGroupByMultiQuery Apply<TTable>(string tableName, Func<TTable, IColumn> select, Func<IPrefixField, IAggregateField> aggregate, Func<Logic, IAggregateField, Logic> query) where TTable : ITable
参数
tableName
string表名
select
Func<TTable, IColumn>筛选
aggregate
Func<IPrefixField, IAggregateField>聚合
query
Func<Logic, IAggregateField, Logic>查询
返回
类型参数
TTable