ModelExtensions.GetChangeTrackingStrategy(IModel) 方法

定义

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

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

参数

model
IModel

要获取其默认更改跟踪策略的模型。

返回

更改跟踪策略。

属性

适用于