Show / Hide Table of Contents

Method AddDbUniqueConstraint

| Improve this Doc View Source

AddDbUniqueConstraint(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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest