Table of Contents

GroupByMultiQuery 类

命名空间
ShadowSql.GroupBy
程序集
ShadowSql.dll

对MultiQuery进行分组查询

public class GroupByMultiQuery : GroupByQueryBase<IMultiView>, IGroupByView, IDataQuery, IDataFilter, ITableView, ISqlEntity
继承
GroupByMultiQuery
实现
Derived
继承成员
扩展方法

构造函数

GroupByMultiQuery(IMultiView, IField[])

对多表进行分组查询

public GroupByMultiQuery(IMultiView multiTable, IField[] fields)

参数

multiTable IMultiView
fields IField[]

GroupByMultiQuery(IMultiView, IField[], Logic)

对MultiQuery进行分组查询

public GroupByMultiQuery(IMultiView multiTable, IField[] fields, Logic filter)

参数

multiTable IMultiView
fields IField[]
filter Logic

方法

Apply<TAliasTable>(string, Func<TAliasTable, IAggregateField>, Func<Logic, IAggregateField, Logic>)

按逻辑查询

public GroupByMultiQuery 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>

返回

GroupByMultiQuery

类型参数

TAliasTable

Apply<TTable>(string, Func<TTable, IColumn>, Func<IPrefixField, IAggregateField>, Func<Logic, IAggregateField, Logic>)

按逻辑查询

public GroupByMultiQuery 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>

返回

GroupByMultiQuery

类型参数

TTable