Can't get mapping Many to Many relations without join entity to work. #684
Unanswered
martinkcentric
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Can you share your EF entity mapping configuration? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's a bit sensitive, so I've removed all tables but the ones involved here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I can't get mapping Many to Many relations without join entity to work.
I followed the description here, and also looked at this discussion, but to no avail.
In my database context I have:
My configuration is like this:
The lambda expression in the MapTable is never executed.
If I insert an association and change a 'regular' (e.g. string) property in MappingGroup, the lambda in Map<MappingGroup, Log> is executed and I can see in the insert in
evt.EntityFrameworkEvent.Associations
.If I insert an association without changing a regular property the lambda is not executed.
I'm using Audit.EntityFramework 26.0.0 with EntityFramework 6.5.1 - database first.
What am I doing wrong?
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions