-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Partial Fix for 6674. Allow inline configuration of Navigations as they are created #20195
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
…ithOne. Generic and non-generic.
c7e8bdd
to
1c26c4d
Compare
@AndriySvyryd - this is the fix for all generic and non-generic updates to HasOne/HasMany/WithOne/WithMany except many-to-many. I'd like to get this checked in before it gets too unwieldy and continue to work on the rest separately (which includes the update to MemberInfo instead of PropertyInfo). |
…ectly Updated WithOneBuilder calls to do nav config. Extracted IConventionNavigationBuilder.
|
||
navigationConfiguration( | ||
new NavigationBuilder(navigation)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest extracting this to a common method as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into it. They all do slightly different things - navigationName
vs navigationMember
etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, you can abstract them as MemberIdentity
, see WithOneBuilder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Add |
Abstract into HasOneBuilder().
All comments addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to squash your commits
WIP: Partial Fix for #6674. Allow inline configuration of Navigations as they are created.
Note: there's more to come. At the moment this just supports the WithMany(...). HasOne(...) syntax, but I know I need to do the others too.