Bagikan melalui


ModelExtensions.GetChangeTrackingStrategy(IModel) Metode

Definisi

Mendapatkan strategi pelacakan perubahan default yang digunakan untuk entitas dalam model. Strategi ini menunjukkan bagaimana konteks mendeteksi perubahan pada properti untuk instans jenis entitas.

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

Parameter

model
IModel

Model untuk mendapatkan strategi pelacakan perubahan default.

Mengembalikan

Strategi pelacakan perubahan.

Atribut

Berlaku untuk