PropertyEntry.IsModified Property

Definition

Gets or sets a value indicating whether the value of this property has been modified and should be updated in the database when SaveChanges() is called.

C#
public virtual bool IsModified { get; set; }
C#
public override bool IsModified { get; set; }

Property Value

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0