RelationalModelExtensions.RemoveDbFunction Method

Definition

Overloads

RemoveDbFunction(IConventionModel, MethodInfo)

Removes the function that is mapped to the method represented by the given MethodInfo.

RemoveDbFunction(IConventionModel, String)

Removes the function that is mapped to the method represented by the given MethodInfo.

RemoveDbFunction(IMutableModel, MethodInfo)

Removes the function that is mapped to the method represented by the given MethodInfo.

RemoveDbFunction(IMutableModel, String)

Removes the function that is mapped to the method represented by the given MethodInfo.

RemoveDbFunction(IConventionModel, MethodInfo)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Removes the function that is mapped to the method represented by the given MethodInfo.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, System.Reflection.MethodInfo method);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, System.Reflection.MethodInfo method);

Parameters

model
IConventionModel

The model to find the function in.

method
MethodInfo

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

Returns

The removed function or null if the method is not mapped.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

RemoveDbFunction(IConventionModel, String)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Removes the function that is mapped to the method represented by the given MethodInfo.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);

Parameters

model
IConventionModel

The model to find the function in.

name
String

The model name of the function.

Returns

The removed function or null if the method is not mapped.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0

RemoveDbFunction(IMutableModel, MethodInfo)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Removes the function that is mapped to the method represented by the given MethodInfo.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, System.Reflection.MethodInfo method);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, System.Reflection.MethodInfo method);

Parameters

model
IMutableModel

The model to find the function in.

method
MethodInfo

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

Returns

The removed function or null if the method is not mapped.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

RemoveDbFunction(IMutableModel, String)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Removes the function that is mapped to the method represented by the given MethodInfo.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);

Parameters

model
IMutableModel

The model to find the function in.

name
String

The model name of the function.

Returns

The removed function or null if the method is not mapped.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0