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); }