For example:
User user = GetSession().Query<User>().SingleOrDefault(u => u.Login == login);
That query could evaluated twice in my code from different methods (check if user exist and save some data to cookies). Profiler shows that nhibernate accessed database twice for that query inside one session. Is it possible to configure nhiberate/mappings do not execute the same queries inside same session?
Thanks in advance