Aracılığıyla paylaş


OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasChangeTrackingStrategy Yöntem

Tanım

ChangeTrackingStrategy bu varlık türü için kullanılacak şekilde yapılandırılır. Bu strateji, bağlamın varlık türünün bir örneğinin özelliklerine yapılan değişiklikleri nasıl algıladiğini 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>

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

Şunlara uygulanır