From 3d846abfe9c977e31a3b6bf49ec6bb92978e8ba7 Mon Sep 17 00:00:00 2001 From: Richard Marskell Date: Mon, 2 Dec 2019 09:05:29 -0500 Subject: [PATCH] Update parameter name for clarity Updated the `HasOne` parameter name to be consistent with `HasForeignKey` so as not to cause confusion. Resolves https://github.com/aspnet/EntityFramework.Docs/issues/1626 --- samples/core/Modeling/FluentAPI/Relationships/OneToOne.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/core/Modeling/FluentAPI/Relationships/OneToOne.cs b/samples/core/Modeling/FluentAPI/Relationships/OneToOne.cs index 92ba8c1845..f93745a7aa 100644 --- a/samples/core/Modeling/FluentAPI/Relationships/OneToOne.cs +++ b/samples/core/Modeling/FluentAPI/Relationships/OneToOne.cs @@ -12,7 +12,7 @@ class MyContext : DbContext protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() - .HasOne(p => p.BlogImage) + .HasOne(b => b.BlogImage) .WithOne(i => i.Blog) .HasForeignKey(b => b.BlogForeignKey); }