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

适用于