Example of N+1 Problem with NHibernate v5.5.2
Adding batch-size solved many-to-one relation, but it seems not to work with one-to-one
- Clone repository
- Open solution in Visual Studio
- Create a Postgres Database
- Set connection string in "hibernate.cfg.xml" file
- Run application
- See the console output for the Query