Skip to content

Commit

Permalink
Update parameter name for clarity
Browse files Browse the repository at this point in the history
Updated the `HasOne` parameter name to be consistent with `HasForeignKey` so as not to cause confusion. Resolves dotnet#1626
  • Loading branch information
rmarskell authored Dec 2, 2019
1 parent c0fca12 commit 3d846ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/core/Modeling/FluentAPI/Relationships/OneToOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MyContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Blog>()
.HasOne(p => p.BlogImage)
.HasOne(b => b.BlogImage)
.WithOne(i => i.Blog)
.HasForeignKey<BlogImage>(b => b.BlogForeignKey);
}
Expand Down

0 comments on commit 3d846ab

Please sign in to comment.