Table of Contents

Class SqlLiteralNode<T>

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

Represents an SQL syntax tree expression node that defines a generic literal constant.

public sealed class SqlLiteralNode<T> : SqlLiteralNode where T : notnull

Type Parameters

T

Value type.

Inheritance
SqlLiteralNode<T>
Inherited Members
Extension Methods

Properties

Value

Underlying value.

public T Value { get; }

Property Value

T

Methods

GetSql(ISqlColumnTypeDefinitionProvider)

Converts the underlying value to an inline DB representation.

[Pure]
public override 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 override object GetValue()

Returns

object

Underlying value.