EntityTypeExtensions.GetChangeTrackingStrategy(IEntityType) 方法

定义

获取用于此实体类型的更改跟踪策略。 此策略指示上下文如何检测实体类型实例的属性更改。

public static Microsoft.EntityFrameworkCore.Metadata.ChangeTrackingStrategy GetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
public static Microsoft.EntityFrameworkCore.ChangeTrackingStrategy GetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.ChangeTrackingStrategy GetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.ChangeTrackingStrategy
static member GetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ChangeTrackingStrategy
[<System.Diagnostics.DebuggerStepThrough>]
static member GetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ChangeTrackingStrategy
<Extension()>
Public Function GetChangeTrackingStrategy (entityType As IEntityType) As ChangeTrackingStrategy

参数

entityType
IEntityType

实体类型。

返回

更改跟踪策略。

属性

适用于