Sdílet prostřednictvím


ConventionsConfiguration.AddAfter<TExistingConvention> Metoda

Definice

Povolí konvenci pro DbModelBuilder. Tato konvence se spustí po zadané konvenci.

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

Parametry typu

TExistingConvention

Typ konvence, po které se povolená konvence spustí.

Parametry

newConvention
IConvention

Konvence, která se má povolit.

Atributy

Platí pro