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
Asked
Active
Viewed 364 times
1
-
Please provide more details like which Audit.NET extensions are you using, and your configuration/setup code. – thepirat000 Jul 12 '20 at 23:26
1 Answers
1
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.

thepirat000
- 12,362
- 4
- 46
- 72