共用方式為


ETagPropertyConvention 類別

定義

如果存在,則會在並行權杖上新增 etag 中繼資料的慣例。

public class ETagPropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type ETagPropertyConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class ETagPropertyConvention
Implements IModelFinalizingConvention
繼承
ETagPropertyConvention
實作

備註

如需詳細資訊和範例,請參閱使用 EF Core 建立模型慣例存取 Azure Cosmos DB

建構函式

ETagPropertyConvention()

如果存在,則會在並行權杖上新增 etag 中繼資料的慣例。

方法

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在完成模型時呼叫。

適用於