Table of Contents

Class WithClause

Namespace
Utils.Data.Sql
Assembly
Utils.Data.dll

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

isRecursive bool

Indicates whether the WITH clause is recursive.

definitions IEnumerable<CteDefinition>

The definitions included in the clause.

Properties

Definitions

Gets the CTE definitions.

public IReadOnlyList<CteDefinition> Definitions { get; }

Property Value

IReadOnlyList<CteDefinition>

IsRecursive

Gets a value indicating whether the clause is recursive.

public bool IsRecursive { get; }

Property Value

bool

Methods

ToSql()

Builds the SQL text representing the WITH clause.

public string ToSql()

Returns

string

The SQL string for the clause.