Sdílet prostřednictvím


ConventionsConfiguration.AddBefore<TExistingConvention> Metoda

Definice

Povolí konvenci konfigurace pro .DbModelBuilder Tato konvence se spustí před zadanou konvencí.

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

Parametry typu

TExistingConvention

Typ konvence, před kterou bude povolená konvence spuštěna.

Parametry

newConvention
IConvention

Konvence, která se má povolit.

Atributy

Platí pro