Class OdfSchemaIndex
Represents a table index definition model. 表示資料表索引定義模型。
public sealed class OdfSchemaIndex
- Inheritance
-
OdfSchemaIndex
- Inherited Members
Constructors
OdfSchemaIndex(string, bool, IEnumerable<string>)
Initializes a new instance of the OdfSchemaIndex class. 初始化 OdfSchemaIndex 類別的新執行個體。
public OdfSchemaIndex(string name, bool isUnique, IEnumerable<string> columns)
Parameters
namestringThe index name. / 索引名稱。
isUniqueboolWhether this is a unique index. / 是否為唯一索引。
columnsIEnumerable<string>The list of column names included in the index. / 索引所包含的欄位名稱清單。
Exceptions
- ArgumentException
When
nameis empty. / 當name為空時擲出。- ArgumentNullException
Properties
Columns
Gets the list of column names included in the index. 取得索引所包含的欄位名稱清單。
public List<string> Columns { get; }
Property Value
IsUnique
Gets or sets a value indicating whether this index is unique. 取得或設定一個值,指示該索引是否為唯一索引。
public bool IsUnique { get; set; }
Property Value
Name
Gets the index name. 取得索引名稱。
public string Name { get; }