Table of Contents

Class OdfSchemaIndex

Namespace
OdfKit.Database
Assembly
OdfKit.dll

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

name string

The index name. / 索引名稱。

isUnique bool

Whether this is a unique index. / 是否為唯一索引。

columns IEnumerable<string>

The list of column names included in the index. / 索引所包含的欄位名稱清單。

Exceptions

ArgumentException

When name is empty. / 當 name 為空時擲出。

ArgumentNullException

When columns is null. / 當 columnsnull 時擲出。

Properties

Columns

Gets the list of column names included in the index. 取得索引所包含的欄位名稱清單。

public List<string> Columns { get; }

Property Value

List<string>

IsUnique

Gets or sets a value indicating whether this index is unique. 取得或設定一個值,指示該索引是否為唯一索引。

public bool IsUnique { get; set; }

Property Value

bool

Name

Gets the index name. 取得索引名稱。

public string Name { get; }

Property Value

string