Method AddDbUniqueConstraint
| Improve this Doc View SourceAddDbUniqueConstraint(String, String, Boolean, ColumnSort[])
Adds database unique constraint.
Declaration
protected void AddDbUniqueConstraint(string name, string description, bool isClustered, params ColumnSort[] orderByList)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the constraint. |
| System.String | description | The description of the constraint. |
| System.Boolean | isClustered | Specifies whether this unique constraint is clustered. |
| ColumnSort[] | orderByList | The columns and sorting order to make up this unique constraint. |