Bagikan melalui


OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasChangeTrackingStrategy Metode

Definisi

Mengonfigurasi yang ChangeTrackingStrategy akan digunakan untuk jenis entitas ini. Strategi ini menunjukkan bagaimana konteks mendeteksi perubahan pada properti untuk instans jenis entitas.

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

Parameter

changeTrackingStrategy
ChangeTrackingStrategy

Strategi pelacakan perubahan yang akan digunakan.

Mengembalikan

OwnedNavigationBuilder<TEntity,TDependentEntity>

Instans penyusun yang sama sehingga beberapa panggilan konfigurasi dapat dirangkai.

Berlaku untuk