Table of Contents

Class SqlLiteralNode

Namespace
LfrlAnvil.Sql.Expressions.Objects
Assembly
LfrlAnvil.Sql.Core.dll

Represents an SQL syntax tree expression node that defines a type-erased literal constant.

public abstract class SqlLiteralNode : SqlExpressionNode
Inheritance
SqlLiteralNode
Derived
Inherited Members
Extension Methods

Properties

Type

Runtime type of this literal.

public TypeNullability Type { get; }

Property Value

TypeNullability

Methods

GetSql(ISqlColumnTypeDefinitionProvider)

Converts the underlying value to an inline DB representation.

[Pure]
public abstract string GetSql(ISqlColumnTypeDefinitionProvider typeDefinitionProvider)

Parameters

typeDefinitionProvider ISqlColumnTypeDefinitionProvider

ISqlColumnTypeDefinitionProvider instance to use.

Returns

string

Inline DB representation of the underlying value.

Exceptions

KeyNotFoundException

When the type associated with this literal does not exist in the provided typeDefinitionProvider.

GetValue()

Returns an underlying value.

[Pure]
public abstract object GetValue()

Returns

object

Underlying value.