Table of Contents

Interface ILiteral

Namespace
YndigoBlue.Velocity.Interfaces
Assembly
YndigoBlue.Velocity.dll

Defines a literal value used in queries and expressions.

public interface ILiteral : IElement

Remarks

Literals represent constant values in queries, such as numbers, strings, dates, or boolean values. They are converted to parameterized queries for safety and performance. Each literal has an associated data type and may include size/precision constraints for typed parameters. Literals inherit from IElement, allowing them to be used anywhere expressions are valid.

Properties

DataType

Gets the data type of the literal value.

Length

Gets the maximum length for string or binary data types.

ParameterName

Gets the parameter name used to represent this literal value in the query.

Precision

Gets the precision for numeric data types.

Scale

Gets the scale for numeric data types.