Compartilhar via


ConventionsConfiguration.AddBefore<TExistingConvention> Método

Definição

Habilita uma convenção de configuração para o DbModelBuilder. Essa convenção será executada antes da especificada.

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

Parâmetros de tipo

TExistingConvention

O tipo da convenção antes da qual a habilitada será executada.

Parâmetros

newConvention
IConvention

A convenção a ser habilitada.

Atributos

Aplica-se a