RelationalModelExtensions.RemoveDbFunction 方法

定义

重载

RemoveDbFunction(IConventionModel, MethodInfo)

删除映射到给定 MethodInfo表示的方法的函数。

RemoveDbFunction(IConventionModel, String)

删除映射到给定 MethodInfo表示的方法的函数。

RemoveDbFunction(IMutableModel, MethodInfo)

删除映射到给定 MethodInfo表示的方法的函数。

RemoveDbFunction(IMutableModel, String)

删除映射到给定 MethodInfo表示的方法的函数。

RemoveDbFunction(IConventionModel, MethodInfo)

删除映射到给定 MethodInfo表示的方法的函数。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, System.Reflection.MethodInfo method);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, System.Reflection.MethodInfo method);
static member RemoveDbFunction : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction
<Extension()>
Public Function RemoveDbFunction (model As IConventionModel, method As MethodInfo) As IConventionDbFunction

参数

model
IConventionModel

要查找函数的模型。

method
MethodInfo

MethodInfo映射到函数的方法的 。

返回

如果方法未映射,则为已删除的函数或 null

适用于

RemoveDbFunction(IConventionModel, String)

删除映射到给定 MethodInfo表示的方法的函数。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
static member RemoveDbFunction : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction
<Extension()>
Public Function RemoveDbFunction (model As IConventionModel, name As String) As IConventionDbFunction

参数

model
IConventionModel

要查找函数的模型。

name
String

函数的模型名称。

返回

如果方法未映射,则为已删除的函数或 null

适用于

RemoveDbFunction(IMutableModel, MethodInfo)

删除映射到给定 MethodInfo表示的方法的函数。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, System.Reflection.MethodInfo method);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, System.Reflection.MethodInfo method);
static member RemoveDbFunction : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction
<Extension()>
Public Function RemoveDbFunction (model As IMutableModel, method As MethodInfo) As IMutableDbFunction

参数

model
IMutableModel

要查找函数的模型。

method
MethodInfo

MethodInfo映射到函数的方法的 。

返回

如果方法未映射,则为已删除的函数或 null

适用于

RemoveDbFunction(IMutableModel, String)

删除映射到给定 MethodInfo表示的方法的函数。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction? RemoveDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
static member RemoveDbFunction : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction
<Extension()>
Public Function RemoveDbFunction (model As IMutableModel, name As String) As IMutableDbFunction

参数

model
IMutableModel

要查找函数的模型。

name
String

函数的模型名称。

返回

如果方法未映射,则为已删除的函数或 null

适用于