語言

IDbFunction 介面

定義

代表模型中的關聯式資料庫函式。

public interface IDbFunction : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyDbFunction
public interface IDbFunction
public interface IDbFunction : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
type IDbFunction = interface
    interface IReadOnlyDbFunction
    interface IReadOnlyAnnotatable
    interface IAnnotatable
type IDbFunction = interface
type IDbFunction = interface
    interface IAnnotatable
Public Interface IDbFunction
Implements IAnnotatable, IReadOnlyDbFunction
Public Interface IDbFunction
Public Interface IDbFunction
Implements IAnnotatable
衍生
實作

備註

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

屬性

名稱 Description
FunctionName

資料庫中函式的名稱。

IsAggregate

取得表示該函數是否為聚合函數的值。

IsBuiltIn

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

IsNullable

取得顯示資料庫函式是否能回傳 null 的值。

IsScalar

得到表示此函數是否回傳純量值的值。

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
MethodInfo

取得 CLR 方法,該方法會映射到資料庫中的函式。

Model

得到定義此函數的模型。

ModelName

取得模型中函數的名稱。

Name

取得資料庫中函式的名稱。

Parameters

取得此函數的參數

ReturnType

拿回的CLR類型。

Schema

取得資料庫中函式的結構。

StoreFunction

得到相關的 IStoreFunction。

StoreType

取得已設定的 store 類型字串。

Translation

取得將方法呼叫自訂轉譯成 SQL 表達式片段時的轉換回調。

TypeMapping

取得函式回傳型別的型別映射。

方法

名稱 Description
AddRuntimeAnnotation(String, Object)

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

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得執行時註解的值,若名稱不存在則回 null 傳。

(繼承來源 IAnnotatable)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前物件的所有註解。

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

取得帶有名稱的執行時註解值,若不存在則加入該註解。

(繼承來源 IAnnotatable)
GetRuntimeAnnotations()

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

(繼承來源 IAnnotatable)
RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

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

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

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

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

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

(繼承來源 IReadOnlyDbFunction)

擴充方法

名稱 Description
AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(IDbFunction, MetadataDebugStringOptions, Int32)

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

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

適用於