Table of Contents

Enum DefaultConstraintType

Namespace
YndigoBlue.Velocity.Enums
Assembly
YndigoBlue.Velocity.dll

Specifies the type of value that can be assigned as a default in a default constraint.

public enum DefaultConstraintType

Fields

Number = 1

A numeric literal value (integer or decimal).

String = 2

A string literal value.

Date = 3

A date literal value.

DateTime = 4

A datetime literal value.

Boolean = 5

A boolean literal value (true/false or 1/0).

Function = 6

A database function call that returns a value (e.g., GETDATE(), UUID()).

Timestamp = 7

A timestamp literal value.

Null = 8

An explicit NULL value.

Remarks

Default constraints specify values to be automatically inserted when a column value is not provided during an INSERT operation. The type determines how the default value is interpreted and rendered in SQL.