Entity Framework Core Plus Audit - Property Unchanged
Problem
You need to keep track of all changed and unchanged properties
Solution
You can choose to ignore or not property unchanged with IgnorePropertyUnchanged.
By default, properties unchanged are ignored unless it's part of the primary key.
// using Z.EntityFramework.Plus; // Don't forget to include this. // Globally AuditManager.DefaultConfiguration.IgnorePropertyUnchanged = false; // By Instance var audit = new Audit(); audit.CreatedBy = "ZZZ Projects"; // Optional audit.Configuration.IgnorePropertyUnchanged = false; ctx.SaveChanges(audit);