Reputation: 121
I have two primary columns and its set by with HasKey (fluent API .net core) When I tried to update a record from the table all columns have an old and new value in changes. but not the primary key. I need these primary key filed in changes is there any way to include these properties in changes
Upvotes: 1
Views: 542
Reputation: 13114
I guess you're using Audit.EntityFramework
library. Note the Changes
property on the audit event output will only include the columns that have changed and will not include the primary key.
But the audit event output includes the primary key on the PrimaryKey
property.
If you need to change the output format, you can use Custom Actions or a Custom Data Provider.
Upvotes: 1