共用方式為


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

要停用之慣例的型別。

屬性

適用於