다음을 통해 공유


ConventionsConfiguration.AddBefore<TExistingConvention> 메서드

정의

에 대한 DbModelBuilder구성 규칙을 사용하도록 설정합니다. 이 규칙은 지정된 규칙 이전에 실행됩니다.

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

형식 매개 변수

TExistingConvention

활성화된 규칙이 실행되기 전의 규칙 유형입니다.

매개 변수

newConvention
IConvention

사용하도록 설정할 규칙입니다.

특성

적용 대상