How to include columns associated with Virtual classes in audit entry. #661
-
[AuditInclude] [AuditInclude] public Program() { } [AuditIgnore] I am trying to audit the Program Entity In DB, it corresponds to the column [ProgramCategory_Id] SELECT TOP (1000) [Id] But i cannnot seem to get it in the audit records. { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please include the libraries/versions you're referencing, the net framework version you're targeting and your configuration code for audit.net. Do you have a mapping to the ProgramCategory_Id foreign key mapped to your program entity?, If not, can you try adding the property? https://stackoverflow.com/questions/60663539/ef-core-should-i-add-foreign-key-id-in-class
|
Beta Was this translation helpful? Give feedback.
Please include the libraries/versions you're referencing, the net framework version you're targeting and your configuration code for audit.net.
Do you have a mapping to the ProgramCategory_Id foreign key mapped to your program entity?, If not, can you try adding the property?
https://stackoverflow.com/questions/60663539/ef-core-should-i-add-foreign-key-id-in-class