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
namestringThe constraint name.
columnNamestringThe 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
namestringThe constraint name.
columnNamesstring[]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
namestringThe constraint name.
columnNamesIEnumerable<string>The names of the columns to include in the primary key.
Returns
- PrimaryKey
The newly created PrimaryKey.