GroupedFilter

Ecng.Data.Sql.Model

Splits a filter over a grouped projection into the part SQL applies to the rows before grouping (WHERE) and the part that reads aggregates and so applies to the groups (HAVING).

方法

Split
public static ValueTuple<Expression, Expression> Split(Expression source, LambdaExpression predicate)
result = GroupedFilter.Split(source, predicate)

Splits the condition of a filter applied to .

source
The sequence the filter is applied to.
predicate
The filter condition.

返回值: The conjuncts that filter rows and those that filter groups, each when there is none. When is not a grouped projection, the whole condition filters rows.