Table of Contents

Method CreatePrimaryKey

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

CreatePrimaryKey(string, string)

Creates a primary key constraint on a single column.

public PrimaryKey CreatePrimaryKey(string name, string columnName)

Parameters

name string

The constraint name.

columnName string

The name of the column to include in the primary key.

Returns

PrimaryKey

The newly created PrimaryKey.

CreatePrimaryKey(string, string[])

Creates a composite primary key constraint across multiple columns.

public PrimaryKey CreatePrimaryKey(string name, string[] columnNames)

Parameters

name string

The constraint name.

columnNames string[]

The names of the columns to include in the primary key.

Returns

PrimaryKey

The newly created PrimaryKey.

CreatePrimaryKey(string, IEnumerable<string>)

Creates a composite primary key constraint across multiple columns.

public PrimaryKey CreatePrimaryKey(string name, IEnumerable<string> columnNames)

Parameters

name string

The constraint name.

columnNames IEnumerable<string>

The names of the columns to include in the primary key.

Returns

PrimaryKey

The newly created PrimaryKey.