語言

IStoreFunction 介面

定義

代表資料庫中的一個函式。

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

備註

更多資訊與範例請參見 資料庫函數 。

屬性

名稱 Description
Columns

取得回傳列集所定義的欄位。

ComplexTypeMappings

能取得複雜型態的映射。

(繼承來源 ITableBase)
DbFunctions

取得相關的模型函數。

EntityTypeMappings

取得回傳資料集的實體類型映射。

IsBuiltIn

取得顯示資料庫函式是否內建的值。

IsShared

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

(繼承來源 ITableBase)
Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
Model

取得資料庫模型。

(繼承來源 ITableBase)
Name

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

(繼承來源 ITableBase)
Parameters

取得此函數的參數。

ReturnType

會得到純量回傳類型。

Schema

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

(繼承來源 ITableBase)
SchemaQualifiedName

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

(繼承來源 ITableBase)

方法

名稱 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(IStoreFunction, MetadataDebugStringOptions, Int32)

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

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

適用於