NHibernate does not support Async, expecting a default entity framework in terms of infrastructure. However, it would be advisable to do this (if possible), since a database call is an I / O call, which is a very good candidate to make it asynchronous. As a result, waiting for a response from the database, your thread will return to the pool instead of being deferred, and this will make your application more scalable. Now let's start asynchronous support. I developed NHibernate to achieve this. In my fork, which I call NHibernateX, there are Async methods like GetAsync, ListAsync, ToListAsync, etc. Here is the source and nuget package:
https://github.com/ReverseBlade/nhibernate-core
https://www.nuget.org/packages/NHibernateX/
source share