語言

ConventionSet.Replace 方法

定義

多載

名稱 Description
Replace<TConvention,TImplementation>(List<TConvention>, TImplementation)

用衍生慣例取代現有慣例。

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

用衍生慣例取代現有慣例。

Replace<TImplementation>(TImplementation)

用衍生慣例取代現有慣例。 同時註冊任何未被現有慣例實作的慣例類型。

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

來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs

用衍生慣例取代現有慣例。

public static bool Replace<TConvention,TImplementation>(System.Collections.Generic.List<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
static member Replace : System.Collections.Generic.List<'Convention> * 'Implementation -> bool
Public Shared Function Replace(Of TConvention, TImplementation) (conventionsList As List(Of TConvention), newConvention As TImplementation) As Boolean

類型參數

TConvention

被取代的慣例類型。

TImplementation

舊式的慣例。

參數

conventionsList
List<TConvention>

現有約定實例清單,需掃描。

newConvention
TImplementation

新會議。

傳回

true 如果會議被取代的話。

適用於

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

來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs

用衍生慣例取代現有慣例。

public static bool Replace<TConvention,TImplementation>(System.Collections.Generic.IList<TConvention> conventionsList, TImplementation newConvention) where TImplementation : TConvention;
static member Replace : System.Collections.Generic.IList<'Convention> * 'Implementation -> bool
Public Shared Function Replace(Of TConvention, TImplementation) (conventionsList As IList(Of TConvention), newConvention As TImplementation) As Boolean

類型參數

TConvention

被取代的慣例類型。

TImplementation

舊式的慣例。

參數

conventionsList
IList<TConvention>

現有約定實例清單,需掃描。

newConvention
TImplementation

新會議。

傳回

true 如果會議被取代的話。

適用於

Replace<TImplementation>(TImplementation)

來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs
來源:
ConventionSet.cs

用衍生慣例取代現有慣例。 同時註冊任何未被現有慣例實作的慣例類型。

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

類型參數

TImplementation

舊式的慣例。

參數

newConvention
TImplementation

新會議。

適用於