Table of Contents

Class AggregateClassification

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Public classification of an expression as an aggregate (vs. scalar/window). Single implementation shared by the engine and external operators; aggregate FILTER/DISTINCT arguments stay opaque. No duplicated magic-name list and no registry.

public static class AggregateClassification
Inheritance
AggregateClassification
Inherited Members

Methods

IsAdvancedAggregateMethod(MethodCallExpression)

Returns true when node is an advanced aggregate method.

public static bool IsAdvancedAggregateMethod(MethodCallExpression node)

Parameters

node MethodCallExpression

Returns

bool

IsAggregate(Expression?)

Returns true when expression is an aggregate call.

public static bool IsAggregate(Expression? expression)

Parameters

expression Expression

Returns

bool

IsSingleColumnProjection(Type)

Returns true when type is a single-column projection.

public static bool IsSingleColumnProjection(Type type)

Parameters

type Type

Returns

bool

IsWindow(Expression?)

Returns true when expression is a window function call.

public static bool IsWindow(Expression? expression)

Parameters

expression Expression

Returns

bool

MapWindowFunctionName(string)

Maps a method name to a window function name, or null when it is not a window.

public static string? MapWindowFunctionName(string methodName)

Parameters

methodName string

Returns

string

ResolveSqlFunctionAttribute(MethodInfo)

Resolves the effective SqlFunctionAttribute for method.

public static SqlFunctionAttribute? ResolveSqlFunctionAttribute(MethodInfo method)

Parameters

method MethodInfo

Returns

SqlFunctionAttribute

UnwrapConvert(Expression)

Unwraps a convert expression.

public static Expression UnwrapConvert(Expression expression)

Parameters

expression Expression

Returns

Expression