OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasChangeTrackingStrategy(ChangeTrackingStrategy) Yöntem

Tanım

ChangeTrackingStrategyBu varlık türü için kullanılacak öğesini yapılandırır. Bu strateji, bağlamın varlık türü örneği için özelliklerde yapılan değişiklikleri nasıl algıladığını gösterir.

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)

Parametreler

changeTrackingStrategy
ChangeTrackingStrategy

Kullanılacak değişiklik izleme stratejisi.

Döndürülenler

OwnedNavigationBuilder<TEntity,TDependentEntity>
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Birden çok yapılandırma çağrısının zincirlenebilir olması için aynı Oluşturucu örneği.

Şunlara uygulanır