Share via


ConventionsConfiguration.Remove Method

Definition

Overloads

Remove(IConvention[])

Disables one or more conventions for the DbModelBuilder.

Remove<TConvention>()

Disables a convention for the DbModelBuilder. The default conventions that are available for removal can be found in the System.Data.Entity.ModelConfiguration.Conventions namespace.

Remove(IConvention[])

Disables one or more conventions for the 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())

Parameters

conventions
IConvention[]

The conventions to be disabled.

Applies to

Remove<TConvention>()

Disables a convention for the DbModelBuilder. The default conventions that are available for removal can be found in the System.Data.Entity.ModelConfiguration.Conventions namespace.

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) ()

Type Parameters

TConvention

The type of the convention to be disabled.

Attributes

Applies to