Dela via


RelationalModelAnnotations.GetOrAddDbFunction(MethodInfo) Method

Definition

Either returns the existing Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction mapped to the given method or creates a new function mapped to the method.

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

Parameters

methodInfo
MethodInfo

The MethodInfo for the method that is mapped to the function.

Returns

Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction

The Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction.

Applies to