ITable 介面

定義

表示資料庫中的資料表。

public interface ITable : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.ITableBase
type ITable = interface
    interface ITableBase
    interface IAnnotatable
type ITable = interface
    interface ITableBase
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ITable
Implements IAnnotatable, ITableBase
實作

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

CheckConstraints

取得這個資料表的檢查條件約束。

Columns

取得為此資料表定義的資料行。

Comment

取得這個資料表的批註。

ComplexTypeMappings

取得複雜型別對應。

(繼承來源 ITableBase)
EntityTypeMappings

取得實體類型對應。

ForeignKeyConstraints

取得這個資料表的外鍵條件約束。

Indexes

取得這個資料表的索引。

IsExcludedFromMigrations

取得值,指出資料表是否應該由移轉管理

IsShared

取得值,指出多個實體類型是否共用資料表中的資料列。

(繼承來源 ITableBase)
Item[String]

取得具有指定名稱之注釋的值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
Model

取得資料庫模型。

(繼承來源 ITableBase)
Name

取得資料庫中資料表的名稱。

(繼承來源 ITableBase)
PrimaryKey

取得這個資料表的主鍵。

ReferencingForeignKeyConstraints

取得參考這個資料表的外鍵條件約束。

Schema

取得資料庫中資料表的架構。

(繼承來源 ITableBase)
SchemaQualifiedName

取得資料庫中資料表的架構限定名稱。

(繼承來源 ITableBase)
Triggers

取得這個資料表的觸發程式。

UniqueConstraints

取得唯一的條件約束,包括這個資料表的主鍵。

方法

AddRuntimeAnnotation(String, Object)

將執行時間批註新增至這個 物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有注釋的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindColumn(IProperty)

取得對應至指定屬性的資料行。 如果沒有資料行對應至指定的屬性,則傳 null 回 。

FindColumn(String)

取得具有指定名稱的資料行。 null如果未定義具有指定名稱的資料行,則傳回 。

FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則 null 傳回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間批註值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetReferencingRowInternalForeignKeys(IEntityType)

從共用此資料表的其他實體類型取得參考指定實體類型的外鍵。

(繼承來源 ITableBase)
GetRowInternalForeignKeys(IEntityType)

取得指向共用此資料表之其他實體類型的指定實體類型的外鍵。

(繼承來源 ITableBase)
GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
IsOptional(IEntityType)

取得值,指出指定型別的實體是否可能不存在於資料列中。

(繼承來源 ITableBase)
IsOptional(ITypeBase)

取得值,指出指定型別的實體是否可能不存在於資料列中。

(繼承來源 ITableBase)
RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵底下的執行時間批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。

(繼承來源 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

明確介面實作

ITableBase.ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

取得 物件上宣告之所有注釋的偵錯字串。

GetAnnotation(IAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

ToDebugString(ITable, MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

IsSqlReturningClauseUsed(ITable)

傳回值,指出將變更儲存至資料表時,是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

IsSqlOutputClauseUsed(ITable)

傳回值,指出將變更儲存至資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

適用於