共用方式為


RelationalModelAnnotations.GetOrAddDbFunction(MethodInfo) 方法

定義

傳回對應至指定方法的現有 Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction ,或建立對應至 方法的新函式。

public virtual Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction GetOrAddDbFunction (System.Reflection.MethodInfo methodInfo);
abstract member GetOrAddDbFunction : System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction
override this.GetOrAddDbFunction : System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction
Public Overridable Function GetOrAddDbFunction (methodInfo As MethodInfo) As DbFunction

參數

methodInfo
MethodInfo

對應 MethodInfo 至函式之方法的 。

傳回

Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction

Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction

適用於