語言

OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasChangeTrackingStrategy 方法

定義

配置 以 ChangeTrackingStrategy 用於此實體類型。 此策略顯示上下文如何偵測該實體類型實例屬性的變更。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> HasChangeTrackingStrategy(Microsoft.EntityFrameworkCore.ChangeTrackingStrategy changeTrackingStrategy);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TDependentEntity> HasChangeTrackingStrategy(Microsoft.EntityFrameworkCore.ChangeTrackingStrategy changeTrackingStrategy);
override this.HasChangeTrackingStrategy : Microsoft.EntityFrameworkCore.ChangeTrackingStrategy -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
override this.HasChangeTrackingStrategy : Microsoft.EntityFrameworkCore.ChangeTrackingStrategy -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)>
Public Overridable Function HasChangeTrackingStrategy (changeTrackingStrategy As ChangeTrackingStrategy) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Public Overridable Function HasChangeTrackingStrategy (changeTrackingStrategy As ChangeTrackingStrategy) As OwnedNavigationBuilder(Of TEntity, TDependentEntity)

參數

changeTrackingStrategy
ChangeTrackingStrategy

變更追蹤策略將被採用。

傳回

OwnedNavigationBuilder<TEntity,TDependentEntity>

同一個建構器實例,這樣可以串接多個設定呼叫。

適用於