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

Add generic overloads for relationship API with navigations passed as strings #9191

Closed
ajcvickers opened this issue Jul 17, 2017 · 0 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@ajcvickers
Copy link
Member

ajcvickers commented Jul 17, 2017

See #9171. This would allow something like this:

modelBuilder.Entity<Samurai>()
    .HasOne<Entrance>("Entrance")
    .WithOne(e => e.Sam);

This both looks nicer than the typeof() syntax and more importantly allows lambda expressions to be used in further chained calls.

@ajcvickers ajcvickers added this to the 2.1.0 milestone Jul 17, 2017
@ajcvickers ajcvickers removed this from the 2.1.0 milestone Jul 17, 2017
@ajcvickers ajcvickers added this to the 2.1.0 milestone Jul 19, 2017
@ajcvickers ajcvickers self-assigned this Jul 19, 2017
@ajcvickers ajcvickers modified the milestones: 2.1.0-preview1, 2.1.0 Jan 17, 2018
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Feb 27, 2018
@ajcvickers ajcvickers modified the milestones: 2.1.0-preview2, 2.1.0 Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

1 participant