Table of Contents

Namespace LinqToDB.Internal.SqlQuery

Classes

AliasesContext
ClauseBase
ClauseBase<T1>
CteAnnotationNames

Well-known annotation names carried on Annotations. Cross-provider keys are flat. Provider-specific keys, when they appear, belong in nested classes.

CteClause
DebugStringExtensions
EvaluationContext
ISqlExpressionEqualityComparer
ISqlPredicateEqualityComparer
JoinExtensions
NullabilityContext

Provides information about expression nullability in current (sub)query context based on nullability annotations on expressions and outer joins.

PredicateExtensions
PseudoFunctions

Contains names and create helpers for pseudo-functions, generated by linq2db and then converted to database-specific SQL by provider-specific SQL optimizer.

QueryElement

Base class for SQL AST nodes. Use only if you need to add debug functionality to AST node.

QueryElementTextWriter
QueryHelper
QueryVisitorExtensions
SelectQuery
SelectQueryExtensions
SimilarityMerger
SqlAliasPlaceholder
SqlAnchor
SqlBinaryExpression
SqlCaseExpression
SqlCaseExpression.CaseItem
SqlCastExpression
SqlCoalesceExpression
SqlColumn
SqlComment
SqlCompareToExpression
SqlConcatExpression
SqlConditionExpression
SqlConditionalInsertClause
SqlCreateTableStatement
SqlCteField

Column definition inside a CteClause (stored in Fields). Represents CTE schema, not a table-bound field reference — runtime references to a CTE's columns go through SqlCteTableField instead.

SqlCteTable
SqlCteTableField

Field in SqlCteTable. Delegates Name, Type, CanBeNullable to the referenced SqlCteField.

SqlDeleteStatement
SqlDropTableStatement
SqlExpression
SqlExpressionBase
SqlExtendedFunction
SqlExtensions

This is internal API and is not intended for use by Linq To DB applications. It may change or be removed without further notice.

SqlField
SqlFieldBase

Abstract base class for table-bound SQL field references: SqlField and SqlCteTableField. Contains common properties shared by field references that are resolved against an ISqlTableSource.

SqlFragment

Untyped (doesn't have type of type information should be hidden from Linq To DB) SQL fragment with parameters.

SqlFrameClause
SqlFromClause
SqlFromClause.Join
SqlFunction
SqlGetValue
SqlGroupByClause
SqlGroupingSet
SqlHavingClause
SqlInlinedBase
SqlInlinedSqlExpression
SqlInlinedToSqlExpression
SqlInsertClause
SqlInsertOrUpdateStatement
SqlInsertStatement
SqlJoinedTable
SqlKeepClause
SqlMergeOperationClause
SqlMergeStatement
SqlMultiInsertStatement
SqlNullabilityExpression
SqlObjectExpression
SqlObjectNameComparer
SqlOrderByClause
SqlOrderByItem
SqlOutputClause
SqlParameter
SqlParameterCastExpression

Marks one usage of a SqlParameter as needing an explicit type in the generated SQL.

SqlParameterValue
SqlParameterValues
SqlParameterizedExpressionBase
SqlPredicate
SqlPredicate.BaseNotExpr
SqlPredicate.Between
SqlPredicate.Exists
SqlPredicate.Expr
SqlPredicate.ExprExpr
SqlPredicate.FalsePredicate
SqlPredicate.InList
SqlPredicate.InSubQuery
SqlPredicate.IsDistinct
SqlPredicate.IsNull
SqlPredicate.IsTrue

'[NOT] Expr1 IS TRUE' predicate.

SqlPredicate.Like
SqlPredicate.Not
SqlPredicate.SearchString
SqlPredicate.TruePredicate
SqlQueryExtension
SqlRawSqlTable
SqlRowExpression
SqlSearchCondition
SqlSelectClause
SqlSelectStatement
SqlSetExpression
SqlSetOperator
SqlSourceBase
SqlStatement
SqlStatementWithQueryBase
SqlTable
SqlTableLikeSource
SqlTableSource
SqlTruncateTableStatement
SqlUnaryExpression
SqlUpdateClause
SqlUpdateStatement
SqlValue
SqlValuesTable
SqlWhereClause
SqlWithClause

Interfaces

IQueryElement

Sql AST node interface.

IQueryExtension
IReadOnlyParameterValues
ISimilarityMerger
ISqlExpression
ISqlExtensionBuilder

Base interface for all extension builders.

ISqlNamedTable
ISqlPredicate
ISqlQueryExtensionBuilder

Interface for custom query extension builder.

ISqlTableExtensionBuilder

Interface for custom table extension builder.

ISqlTableSource

Enums

GroupingType
JoinType

Type of JOIN operation.

NullsDefaultOrdering

Describes how a provider places NULL values in an ORDER BY by default (i.e. when no NULLS FIRST/NULLS LAST is specified). Used to elide a requested Sql.NullsPosition when it already matches the provider's natural placement for the item's sort direction.

ParametersNullabilityType

Provides information when function or expression could return null.

QueryElementType

SQL AST node types.

QueryType
SetOperation
SourceCardinality
SqlAnchor.AnchorKindEnum
SqlFlags
SqlFrameClause.FrameExclusionKind
SqlFrameClause.FrameTypeKind
SqlKeepClause.KeepType
SqlPredicate.Operator
SqlPredicate.SearchString.SearchKind
SqlTableType
SqlUnaryOperation