ProviderConventionSetBuilder.ReplaceConvention Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ReplaceConvention<TConvention,TImplementation>(IList<TConvention>, TImplementation) |
Replaces an existing convention with a derived convention. |
ReplaceConvention<TConvention,TImplementation>(List<TConvention>, TImplementation) |
Replaces an existing convention with a derived convention. |
Replaces an existing convention with a derived convention.
protected virtual bool ReplaceConvention<TConvention,TImplementation> (System.Collections.Generic.IList<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
abstract member ReplaceConvention : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
override this.ReplaceConvention : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
Protected Overridable Function ReplaceConvention(Of TConvention, TImplementation) (conventionsList As IList(Of TConvention), newConvention As TImplementation) As Boolean
Type Parameters
- TConvention
The type of convention being replaced.
- TImplementation
The type of the old convention.
Parameters
- conventionsList
- IList<TConvention>
The list of existing convention instances to scan.
- newConvention
- TImplementation
The new convention.
Returns
Applies to
Entity Framework Core 6.0 i druge verzije
Proizvod | Verzije |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0 |
Replaces an existing convention with a derived convention.
protected virtual bool ReplaceConvention<TConvention,TImplementation> (System.Collections.Generic.List<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
abstract member ReplaceConvention : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
override this.ReplaceConvention : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
Protected Overridable Function ReplaceConvention(Of TConvention, TImplementation) (conventionsList As List(Of TConvention), newConvention As TImplementation) As Boolean
Type Parameters
- TConvention
The type of convention being replaced.
- TImplementation
The type of the old convention.
Parameters
- conventionsList
- List<TConvention>
The list of existing convention instances to scan.
- newConvention
- TImplementation
The new convention.
Returns
Applies to
Entity Framework Core 9.0 i druge verzije
Proizvod | Verzije |
---|---|
Entity Framework Core | 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: