다음을 통해 공유


ConventionSet.Replace 메서드

정의

오버로드

Replace<TConvention,TImplementation>(List<TConvention>, TImplementation)

기존 규칙을 파생 규칙으로 대체합니다.

Replace<TConvention,TImplementation>(IList<TConvention>, TImplementation)

기존 규칙을 파생 규칙으로 대체합니다.

Replace<TImplementation>(TImplementation)

기존 규칙을 파생 규칙으로 대체합니다. 또한 기존 규칙에 의해 구현되지 않은 모든 규칙 형식에 대한 새 규칙을 등록합니다.

Replace<TConvention,TImplementation>(List<TConvention>, TImplementation)

기존 규칙을 파생 규칙으로 대체합니다.

public static bool Replace<TConvention,TImplementation> (System.Collections.Generic.List<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
static member Replace : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
Public Shared Function Replace(Of TConvention, TImplementation) (conventionsList As List(Of TConvention), newConvention As TImplementation) As Boolean

형식 매개 변수

TConvention

대체되는 규칙의 형식입니다.

TImplementation

이전 규칙의 형식입니다.

매개 변수

conventionsList
List<TConvention>

검사할 기존 규칙 인스턴스의 목록입니다.

newConvention
TImplementation

새 규칙입니다.

반환

true 규칙이 대체되었으면 입니다.

적용 대상

Replace<TConvention,TImplementation>(IList<TConvention>, TImplementation)

기존 규칙을 파생 규칙으로 대체합니다.

public static bool Replace<TConvention,TImplementation> (System.Collections.Generic.IList<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
static member Replace : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
Public Shared Function Replace(Of TConvention, TImplementation) (conventionsList As IList(Of TConvention), newConvention As TImplementation) As Boolean

형식 매개 변수

TConvention

대체되는 규칙의 형식입니다.

TImplementation

이전 규칙의 형식입니다.

매개 변수

conventionsList
IList<TConvention>

검사할 기존 규칙 인스턴스의 목록입니다.

newConvention
TImplementation

새 규칙입니다.

반환

true 규칙이 대체되었으면 입니다.

적용 대상

Replace<TImplementation>(TImplementation)

기존 규칙을 파생 규칙으로 대체합니다. 또한 기존 규칙에 의해 구현되지 않은 모든 규칙 형식에 대한 새 규칙을 등록합니다.

public virtual void Replace<TImplementation> (TImplementation newConvention) where TImplementation : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention;
abstract member Replace : 'Implementation -> unit (requires 'Implementation :> Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention)
override this.Replace : 'Implementation -> unit (requires 'Implementation :> Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention)
Public Overridable Sub Replace(Of TImplementation As IConvention) (newConvention As TImplementation)

형식 매개 변수

TImplementation

이전 규칙의 형식입니다.

매개 변수

newConvention
TImplementation

새 규칙입니다.

적용 대상