One to zero-or-one with HasForeignKey
OK, I figured that out – you should use WithMany (yep, not obvious) in order to store foreign key in some property: Property(e => e.PersonId).HasColumnName(“person_id”); HasRequired(e => e.Person) .WithMany() .HasForeignKey(p => p.PersonId); See One-to-One Foreign Key Associations article for details. BTW this will create employee foreign key column for person’s table, but there is no … Read more