ConventionSetBuilder.Replace<TImplementation> Metoda

Definicja

Zastępuje istniejącą konwencję konwencją pochodną. Rejestruje również nową konwencję dla wszelkich typów konwencji, które nie są implementowane przez istniejącą konwencję.

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

Parametry typu

TImplementation

Typ starej konwencji.

Parametry

conventionFactory
Func<IServiceProvider,TImplementation>

Fabryka, która tworzy nową konwencję.

Dotyczy