ConventionSetBuilder.Replace<TImplementation> Yöntem

Tanım

Mevcut bir kuralı türetilmiş bir kuralla değiştirir. Ayrıca, mevcut kural tarafından uygulanmayan tüm kural türleri için yeni kuralı kaydeder.

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

Tür Parametreleri

TImplementation

Eski kuralın türü.

Parametreler

conventionFactory
Func<IServiceProvider,TImplementation>

Yeni kuralı oluşturan fabrika.

Şunlara uygulanır