ConventionsConfiguration.Remove 方法

定义

重载

Remove(IConvention[])

禁用 的 DbModelBuilder一个或多个约定。

Remove<TConvention>()

禁用 的 DbModelBuilder约定。 可在 System.Data.Entity.ModelConfiguration.Conventions 命名空间中找到可用于删除的默认约定。

Remove(IConvention[])

禁用 的 DbModelBuilder一个或多个约定。

public void Remove(params System.Data.Entity.ModelConfiguration.Conventions.IConvention[] conventions);
member this.Remove : System.Data.Entity.ModelConfiguration.Conventions.IConvention[] -> unit
Public Sub Remove (ParamArray conventions As IConvention())

参数

conventions
IConvention[]

要禁用的约定。

适用于

Remove<TConvention>()

禁用 的 DbModelBuilder约定。 可在 System.Data.Entity.ModelConfiguration.Conventions 命名空间中找到可用于删除的默认约定。

public void Remove<TConvention>() where TConvention : System.Data.Entity.ModelConfiguration.Conventions.IConvention;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public void Remove<TConvention>() where TConvention : System.Data.Entity.ModelConfiguration.Conventions.IConvention;
member this.Remove : unit -> unit (requires 'Convention :> System.Data.Entity.ModelConfiguration.Conventions.IConvention)
Public Sub Remove(Of TConvention As IConvention) ()

类型参数

TConvention

要禁用的约定的类型。

属性

适用于