Table of Contents

Class CteClause

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class CteClause : IQueryElement, ISqlExpressionWalkable
Inheritance
CteClause
Implements
Extension Methods

Constructors

CteClause(SelectQuery?, Type, bool, string?)

public CteClause(SelectQuery? body, Type objectType, bool isRecursive, string? name)

Parameters

body SelectQuery
objectType Type
isRecursive bool
name string

Fields

CteIDCounter

public static int CteIDCounter

Field Value

int

Properties

Body

public SelectQuery? Body { get; set; }

Property Value

SelectQuery

CteID

public int CteID { get; }

Property Value

int

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

Fields

public SqlField[]? Fields { get; }

Property Value

SqlField[]

IsRecursive

public bool IsRecursive { get; set; }

Property Value

bool

Name

public string? Name { get; set; }

Property Value

string

ObjectType

public Type ObjectType { get; set; }

Property Value

Type

Methods

RegisterFieldMapping(int, Func<SqlField>)

public SqlField RegisterFieldMapping(int index, Func<SqlField> fieldFactory)

Parameters

index int
fieldFactory Func<SqlField>

Returns

SqlField

ToString(StringBuilder, Dictionary<IQueryElement, IQueryElement>)

public StringBuilder ToString(StringBuilder sb, Dictionary<IQueryElement, IQueryElement> dic)

Parameters

sb StringBuilder
dic Dictionary<IQueryElement, IQueryElement>

Returns

StringBuilder

Walk<TContext>(WalkOptions, TContext, Func<TContext, ISqlExpression, ISqlExpression>)

public ISqlExpression? Walk<TContext>(WalkOptions options, TContext context, Func<TContext, ISqlExpression, ISqlExpression> func)

Parameters

options WalkOptions
context TContext
func Func<TContext, ISqlExpression, ISqlExpression>

Returns

ISqlExpression

Type Parameters

TContext