Is there Linq for Nhibernate for a stateless session?

I used a regular session to load some items from the database via linq. The problem is that it caches entities, and the memory load increases very unjustifiably. Is there a way to replace a session with a stateless session without making many changes to the client code?

+3
source share
3 answers

Cannot use Linq with IStatelessSession.

You can use all other query methods (Get, Criteria, HQL and SQL).

Update (2010-07-19): I believe Steve can add this to the NH 3.x provider)

+1
source
+6

Is lazy loading enabled?

I have no experience with LINQ to NHibernate, but in my application lazy loading makes a huge difference in performance.

0
source

Source: https://habr.com/ru/post/1739576/


All Articles