Table of Contents

Interface IQueryPreparationContext

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Immutable read-only view of an unprepared QueryCommand exposed to a query component during Prepare(IQueryComponentPrepareContext). It never mutates the command and is safe to capture.

public interface IQueryPreparationContext
Extension Methods

Properties

Command

The command being prepared.

QueryCommand Command { get; }

Property Value

QueryCommand

GroupBy

The grouping expression, if any.

LambdaExpression? GroupBy { get; }

Property Value

LambdaExpression

GroupByWithTotals

Whether grouping includes totals.

bool GroupByWithTotals { get; }

Property Value

bool

GroupingSets

The grouping sets, if any.

IReadOnlyList<int[]>? GroupingSets { get; }

Property Value

IReadOnlyList<int[]>

GroupingType

The grouping type (None/Rollup/Cube/GroupingSets), if applicable.

GroupingType GroupingType { get; }

Property Value

GroupingType

Having

The HAVING expression, if any.

LambdaExpression? Having { get; }

Property Value

LambdaExpression

Projection

The raw projection expression, if any.

LambdaExpression? Projection { get; }

Property Value

LambdaExpression

Sorting

The sortings, if any.

IReadOnlyList<Sorting>? Sorting { get; }

Property Value

IReadOnlyList<Sorting>

SourceType

The source entity type.

Type SourceType { get; }

Property Value

Type

Where

The effective source condition (WHERE), if any.

LambdaExpression? Where { get; }

Property Value

LambdaExpression