RelationalModelAnnotations.GetOrAddDbFunction(MethodInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework