Skip to content

fix l/r in many-to-many.md for UsingEntity method calls - #4609

Merged
ajcvickers merged 1 commit into
dotnet:mainfrom
DickBaker:patch-3
Jan 9, 2024
Merged

ajcvickers merged 1 commit into
dotnet:mainfrom
DickBaker:patch-3

Conversation

@DickBaker

Copy link
Copy Markdown

typical signature overloads have params (joinEntityName, configureRight, configureLeft, configureJoinEntityType) in that order, but all the docs invert the left / right delegate ordering.

This can give rise to join table with conflicting field names and FK navs, so is dangerous for learning "skip navigation".

As Arthur wrote earlier "the code gets complicated quickly and its easy to make a mistake", yup!
The Issue #4269 ' Major overhaul of the "relationships" documentation' needs correcting, so I offer this PR.

HTH.

typical signature overloads have params (joinEntityName, configureRight, configureLeft, configureJoinEntityType) in that order, but all the docs invert the left / right delegate order.

This can give rise to join table with conflicting field names and FK navs, so is dangerous for learning "skip navigation".

As Arthur wrote earlier "the code gets complicated quickly and its easy to make a mistake", yup! The Issue dotnet#4269 
' Major overhaul of the "relationships" documentation' needs correcting, so I offer this PR. HTH.
@ajcvickers

Copy link
Copy Markdown
Contributor

Thanks!

@ajcvickers
ajcvickers merged commit 445f0a9 into dotnet:main Jan 9, 2024
@DickBaker
DickBaker deleted the patch-3 branch January 18, 2024 22:42
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

Successfully merging this pull request may close these issues.

2 participants