ProviderConventionSetBuilder.ReplaceConvention Method

Definition

Overloads

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.

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

Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs

Replaces an existing convention with a derived convention.

C#
protected virtual bool ReplaceConvention<TConvention,TImplementation> (System.Collections.Generic.IList<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;

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

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

Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs
Source:
ProviderConventionSetBuilder.cs

Replaces an existing convention with a derived convention.

C#
protected virtual bool ReplaceConvention<TConvention,TImplementation> (System.Collections.Generic.List<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;

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