語言

IView 介面

定義

代表資料庫中的一個視圖。

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

備註

更多資訊與範例請參閱 建模實體類型與關係 。

屬性

名稱 Description
Columns

取得此視圖的欄位。

ComplexTypeMappings

能取得複雜型態的映射。

(繼承來源 ITableBase)
EntityTypeMappings

取得實體類型的映射。

IsShared

取得顯示多個實體類型是否共享資料表列的值。

(繼承來源 ITableBase)
Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
Model

取得資料庫模型。

(繼承來源 ITableBase)
Name

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

(繼承來源 ITableBase)
Schema

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

(繼承來源 ITableBase)
SchemaQualifiedName

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

(繼承來源 ITableBase)
ViewDefinitionSql

取得視圖定義,或 null 是當此視圖未被遷移管理時。

方法

名稱 Description
AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得物件上所有宣告註解的除錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
FindColumn(IProperty)

讓欄位映射到給定的屬性。 若沒有欄位映射到該屬性,則回傳 null 。

FindColumn(IPropertyBase)

讓欄位映射到給定的屬性。 若沒有欄位映射到該屬性,則回傳 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)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

明確介面實作

名稱 Description
ITableBase.ToDebugString(MetadataDebugStringOptions, Int32)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

擴充方法

名稱 Description
AnnotationsToDebugString(IAnnotatable, Int32)

取得物件上所有宣告註解的除錯字串。

GetAnnotation(IAnnotatable, String)

取得帶有名稱的註解,若不存在則拋出。

ToDebugString(IView, MetadataDebugStringOptions, Int32)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

適用於