Target object with old and new receiving 0 #726
Answered
by
thepirat000
AfonsoMeirelesSilva
asked this question in
Q&A
-
My InsertEvent(AudiEvent) from my Provider is receiving a int property always with 0. my properties is something lik Funny part, changes made to Name are being tracked, with OldName and NewName, but to the Id is not, always wiht 0. |
Beta Was this translation helpful? Give feedback.
Answered by
thepirat000
Jan 26, 2025
Replies: 1 comment 5 replies
-
What kind of audit events? Are you auditing with Audit.EntityFramework.* ? Please give more context |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The clone operation is invoked twice: first, during the creation of the audit scope to capture the
Target.Old
value, and again when the event ends (prior to saving) to populate theTarget.New
value