ConventionSetBuilder.Replace<TImplementation> 메서드

정의

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

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

형식 매개 변수

TImplementation

이전 규칙의 형식입니다.

매개 변수

conventionFactory
Func<IServiceProvider,TImplementation>

새 규칙을 만드는 팩터리입니다.

적용 대상