語言

TableSharingConcurrencyTokenConvention 類別

定義

一種慣例,用來尋找共用一個具有並發標記欄位的表格的實體類型,而這些實體類型沒有映射到該欄位的屬性。 接著它會建立一個影子並行屬性,映射到最基底實體類型上的該欄。

[System.Runtime.CompilerServices.Nullable(0)]
public class TableSharingConcurrencyTokenConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class TableSharingConcurrencyTokenConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type TableSharingConcurrencyTokenConvention = class
    interface IModelFinalizingConvention
    interface IConvention
type TableSharingConcurrencyTokenConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class TableSharingConcurrencyTokenConvention
Implements IModelFinalizingConvention
繼承
TableSharingConcurrencyTokenConvention
屬性
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

建構函式

名稱 Description
TableSharingConcurrencyTokenConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。TableSharingConcurrencyTokenConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

RelationalDependencies

此服務的關聯提供者專屬相依關係。

方法

名稱 Description
GetConcurrencyTokensMap(StoreObjectIdentifier, IReadOnlyList<IEntityType>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

GetConcurrencyTokensMap(StoreObjectIdentifier, IReadOnlyList<IReadOnlyEntityType>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

IsConcurrencyTokenMissing(List<IProperty>, IEntityType, IReadOnlyList<IEntityType>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

IsConcurrencyTokenMissing(List<IReadOnlyProperty>, IReadOnlyEntityType, IReadOnlyList<IReadOnlyEntityType>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

當模型正在定案時會被召喚。

適用於