Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in many to many relationship is not detected by Audit,NET #242

Closed
JohnPenney opened this issue Sep 6, 2019 · 2 comments
Closed
Assignees

Comments

@JohnPenney
Copy link

I'm adding Audit.NET/EF to a legacy DB-first project. (It uses an edmx file built from the database schema to generate the domain model.)

The DB has a many-to-many relationship between table A and table B modeled as usual with a linking table A_B. The domain model generated however doesn't have an A_B class. Instead, A has a container of Bs, and B has a container of As.

I'm finding that changes to the associations between A and B are not being seen by Audit.NET. (It does see the changes to A fields or B fields).

Am I missing something? Or is this simply not possible in Audit.NET?

(Ref: StackOverflow)

@thepirat000
Copy link
Owner

Please check #78

There is a IncludeIndependantAssociations setting to include the Independant Associations (many-to-many relations without a join entity). Note they are logged in a different property of the event output on EntityFrameworkEvent.Associations

@JohnPenney
Copy link
Author

Thanks for that. I'll close this issue.

@thepirat000 thepirat000 self-assigned this Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants