protected override void OnModelCreating(Modelbuilder modelBuilder) { modelBuilder.Entity<Employee>() .HasOne(e => e.Company) .WithMany(c => c.Employees); }