IDbFunction 介面

定義

表示模型中的關係資料庫函式。

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

備註

如需詳細資訊和範例,請參閱 資料庫函 式。

屬性

FunctionName

資料庫中函式的名稱。

IsAggregate

取得值,指出此函式是否為彙總函式。

IsBuiltIn

取得值,指出資料庫函式是否內建。

IsNullable

取得值,指出資料庫函式是否可以傳回 Null。

IsScalar

取得值,指出此函式是否傳回純量值。

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
MethodInfo

取得對應至資料庫中函式的 CLR 方法。

Model

取得定義此函式的模型。

ModelName

取得模型中函式的名稱。

Name

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

Parameters

取得此函式的參數

ReturnType

取得傳回的 CLR 類型。

Schema

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

StoreFunction

取得相關聯的 IStoreFunction

StoreType

取得已設定的存放區類型字串。

Translation

取得用於將方法呼叫自訂轉譯為 SQL 運算式片段的翻譯回呼。

TypeMapping

取得函式傳回型別的類型對應。

方法

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)

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(IDbFunction, MetadataDebugStringOptions, Int32)

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

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

適用於