Table of Contents

Method CreateDefaultConstraint

Namespace
YndigoBlue.Velocity.Model
Assembly
YndigoBlue.Velocity.dll

CreateDefaultConstraint(string, IDefaultItem, DefaultConstraintType, DataType)

Creates a DEFAULT constraint for a column, specifying the default value applied when no value is provided.

public Default CreateDefaultConstraint(string column, IDefaultItem defaultItem, DefaultConstraintType defaultConstraintType, DataType dataType)

Parameters

column string

The column name.

defaultItem IDefaultItem

The default value item.

defaultConstraintType DefaultConstraintType

The type of default constraint.

dataType DataType

The data type of the column receiving the default.

Returns

Default

The newly created Default.