Table of Contents

Class Cte<TResult>

Namespace
NextORM.Core
Assembly
nextorm.core.dll

An immutable, reference-identified descriptor of a common table expression whose rows carry the projection shape TResult.

Created from a query with AsCte(string) and read with From<TResult>(IDataContext, Cte<TResult>). The descriptor is a typed projection source, not a mapped entity: typed member reads resolve to the defining query's output columns, so a whole-entity TResult does not imply a table mapping.

The descriptor holds the defining command and its declaration set internally; identity is by reference, there is no structural or name equality. The defining QueryCommand is not snapshotted, matching the existing CTE lifecycle contract.

Recursion is not part of this API — it declares an ordinary CTE only. The legacy With/WithRecursive/From(string)/From(CteDefinition) string APIs are unchanged and remain the way to read a CTE by name or to build a recursive CTE.

public sealed class Cte<TResult>

Type Parameters

TResult

The row shape the CTE's defining SELECT projects.

Inheritance
Cte<TResult>
Inherited Members
Extension Methods

Properties

Name

The name the common table expression is declared under and referenced by in from.

public string Name { get; }

Property Value

string