ConventionsConfiguration.AddBefore<TExistingConvention> Method (IConvention)
Enables a configuration convention for the DbModelBuilder. This convention will run before the one specified.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")] public void AddBefore<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 before which the enabled one will run.