If the PK of an Auditable entity is set by the database, can I audit an insert which will show the value of this key? #646
Unanswered
marazarian
asked this question in
Q&A
Replies: 1 comment
-
Yes, by default you will get the database generated ID in the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using an SQL database and EF8, if I have a customer table where the PK, customerId , is set by the database, when my code calls saveChangesAsync() to insert a new customer , at that time I don't have the customerId number but only a temporary key set by EF. My audit table should track the new insert including the new customerId number. Would Audit.Net allow this?
Beta Was this translation helpful? Give feedback.
All reactions