DBPrimaryKey Members
The primary key of a table.Constructors
Name | Description |
---|---|
DBPrimaryKey() | Initializes a new instance of the DBPrimaryKey class with default settings. |
DBPrimaryKey(ICollection) | Initializes a new instance of the DBPrimaryKey class with the specified columns that function as primary keys for a table. |
DBPrimaryKey(String, ICollection) | Initializes a new instance of the DBPrimaryKey class with the specified name and columns that function as primary keys for a table. |
Fields
Name | Description |
---|---|
Columns | Specifies a collection of strings that are the names of the columns comprising the DBTableMultiColumnGadget object. In the DBPrimaryKey descendant class, these columns are primary keys. In DBForeignKey, these are foreign keys. In DBIndex, these are columns comprising the index. Inherited from DBTableMultiColumnGadget. |
IsUnique | true if the index must be unique; otherwise, false. If the IsUnique field is set to true, an exception will be thrown when assigning an index that isn’t unique. Inherited from DBIndex. |
Name | This member supports the XPO Framework infrastructure and is not intended to be used directly from your code. Inherited from DBTableMultiColumnGadget. |
Methods
Name | Description |
---|---|
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
ToString() | Returns a string that represents the current object. Inherited from Object. |
See Also