Class WithClause
Represents a WITH clause containing CTE definitions.
public sealed class WithClause
- Inheritance
-
WithClause
- Inherited Members
- Extension Methods
Constructors
WithClause(bool, IEnumerable<CteDefinition>)
Initializes a new instance of the WithClause class.
public WithClause(bool isRecursive, IEnumerable<CteDefinition> definitions)
Parameters
isRecursiveboolIndicates whether the WITH clause is recursive.
definitionsIEnumerable<CteDefinition>The definitions included in the clause.
Properties
Definitions
Gets the CTE definitions.
public IReadOnlyList<CteDefinition> Definitions { get; }
Property Value
IsRecursive
Gets a value indicating whether the clause is recursive.
public bool IsRecursive { get; }
Property Value
Methods
ToSql()
Builds the SQL text representing the WITH clause.
public string ToSql()
Returns
- string
The SQL string for the clause.