Table of Contents

Class OdfSchemaTable

Namespace
OdfKit.Database
Assembly
OdfKit.dll

Represents a table schema structure model. 表示資料表 Schema 結構模型。

public sealed class OdfSchemaTable
Inheritance
OdfSchemaTable
Inherited Members

Constructors

OdfSchemaTable(string)

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

public OdfSchemaTable(string name)

Parameters

name string

The table name. / 資料表名稱。

Exceptions

ArgumentException

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

Properties

Columns

Gets the list of table columns. 取得資料表欄位清單。

public List<OdfSchemaColumn> Columns { get; }

Property Value

List<OdfSchemaColumn>

ForeignKeys

Gets the list of foreign key relationship definitions of the table. 取得資料表的外鍵關聯定義清單。

public List<OdfSchemaForeignKey> ForeignKeys { get; }

Property Value

List<OdfSchemaForeignKey>

Indexes

Gets the list of index definitions of the table. 取得資料表的索引定義清單。

public List<OdfSchemaIndex> Indexes { get; }

Property Value

List<OdfSchemaIndex>

Name

Gets the table name. 取得資料表名稱。

public string Name { get; }

Property Value

string

PrimaryKey

Gets or sets the primary key definition of the table. 取得或設定資料表的主鍵定義。

public OdfSchemaPrimaryKey? PrimaryKey { get; set; }

Property Value

OdfSchemaPrimaryKey