Table of Contents

Class OdfSchemaPrimaryKey

Namespace
OdfKit.Database
Assembly
OdfKit.dll

Represents a primary key definition model. 表示主鍵定義模型。

public sealed class OdfSchemaPrimaryKey
Inheritance
OdfSchemaPrimaryKey
Inherited Members

Constructors

OdfSchemaPrimaryKey(string?, IEnumerable<string>)

Initializes a new instance of the OdfSchemaPrimaryKey class. 初始化 OdfSchemaPrimaryKey 類別的新執行個體。

public OdfSchemaPrimaryKey(string? name, IEnumerable<string> columns)

Parameters

name string

The primary key constraint name. / 主鍵約束名稱。

columns IEnumerable<string>

The list of column names included in the primary key. / 包含在主鍵中的欄位名稱清單。

Exceptions

ArgumentNullException

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

Properties

Columns

Gets the list of column names included in the primary key. 取得主鍵所包含的欄位名稱清單。

public List<string> Columns { get; }

Property Value

List<string>

Name

Gets the primary key constraint name. 取得主鍵約束名稱。

public string? Name { get; }

Property Value

string