ConventionsConfiguration.AddAfter<TExistingConvention> Method (IConvention)

 

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

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public void AddAfter<TExistingConvention>(
	IConvention newConvention
)
where TExistingConvention : IConvention

Parameters

newConvention
Type: System.Data.Entity.ModelConfiguration.Conventions.IConvention

The convention to enable.

Type Parameters

TExistingConvention

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