Share via


ConventionsConfiguration.AddAfter<TExistingConvention> Method

Definition

Enables a convention for the DbModelBuilder. This convention will run after the one specified.

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

Type Parameters

TExistingConvention

The type of the convention after which the enabled one will run.

Parameters

newConvention
IConvention

The convention to enable.

Attributes

Applies to