ITableBase 介面

定義

表示資料庫中類似資料表的物件。

public interface ITableBase : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
type ITableBase = interface
    interface IAnnotatable
type ITableBase = interface
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ITableBase
Implements IAnnotatable
衍生
實作

備註

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

屬性

Columns

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

ComplexTypeMappings

取得複雜型別對應。

EntityTypeMappings

取得實體類型對應。

IsShared

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

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
Model

取得資料庫模型。

Name

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

Schema

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

SchemaQualifiedName

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

方法

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)

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

GetRowInternalForeignKeys(IEntityType)

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

GetRuntimeAnnotations()

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

(繼承來源 IAnnotatable)
IsOptional(IEntityType)

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

IsOptional(ITypeBase)

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

RemoveRuntimeAnnotation(String)

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

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

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

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

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

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

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

適用於