The UniqueConstraint Class

Chia sẻ: Tuan Nghia | Ngày: | Loại File: PDF | Số trang:1

0
48
lượt xem
4
download

The UniqueConstraint Class

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

The UniqueConstraint Class You use an object of the UniqueConstraint class to ensure that a DataColumn value, or combination of DataColumn values, is unique for each DataRow in a DataTable.

Chủ đề:
Lưu

Nội dung Text: The UniqueConstraint Class

  1. The UniqueConstraint Class You use an object of the UniqueConstraint class to ensure that a DataColumn value, or combination of DataColumn values, is unique for each DataRow in a DataTable. The UniqueConstraint class is derived from the System.Data.Constraint class. Table 12.1 shows the UniqueConstraint properties. Table 12.1: UniqueConstraint PROPERTIES PROPERTY TYPE DESCRIPTION Columns DataColumn[] Gets the array of DataColumn objects for the UniqueConstraint. ConstraintName string Gets the name of the UniqueConstraint. ExtendedProperties PropertyCollection Gets the PropertyCollection object that you can use to store strings of additional information. IsPrimaryKey bool Gets a bool that indicates whether the UniqueConstraint is a primary key. Table DataTable Gets the DataTable on which the UniqueConstraint was created.
Đồng bộ tài khoản