다음을 통해 공유


ConventionsConfiguration.Add 메서드

정의

오버로드

Add(IConvention[])

에 대해 DbModelBuilder하나 이상의 규칙을 사용하도록 설정합니다.

Add<TConvention>()

에 대한 DbModelBuilder규칙을 사용하도록 설정합니다.

Add(IConvention[])

에 대해 DbModelBuilder하나 이상의 규칙을 사용하도록 설정합니다.

public void Add(params System.Data.Entity.ModelConfiguration.Conventions.IConvention[] conventions);
member this.Add : System.Data.Entity.ModelConfiguration.Conventions.IConvention[] -> unit
Public Sub Add (ParamArray conventions As IConvention())

매개 변수

conventions
IConvention[]

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

적용 대상

Add<TConvention>()

에 대한 DbModelBuilder규칙을 사용하도록 설정합니다.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public void Add<TConvention>() where TConvention : System.Data.Entity.ModelConfiguration.Conventions.IConventionnew();
member this.Add : unit -> unit (requires 'Convention :> System.Data.Entity.ModelConfiguration.Conventions.IConvention and 'Convention : (new : unit -> 'Convention))
Public Sub Add(Of TConvention As {IConventionNew}) ()

형식 매개 변수

TConvention

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

특성

적용 대상