Questions tagged [session-per-request]

19 questions
0
votes
2 answers

NancyFX + .NET Core + NHibernate

I have created a small API based on NancyFx on .NET Core 2. It uses AutoFac as the IOC container and NHibernate 5.3 to access the database. I have run into a problem with threading and the CurrentSessionContext. Basically when I enter the…
Jay Pete
  • 4,123
  • 4
  • 35
  • 51
0
votes
1 answer

NHibernate/NInject - Update is not executed right after user submit a form

I am in a project which uses below framework ASP.NET MVC4 NHibernate as an ORM NInject as an IoC to manage dependencies and do DI The issue is that after user updated an entity and submitted the form, he must wait about 20 seconds to have correct…
0
votes
2 answers

NHibernate session/transaction per request preventing multiple inserts

The MVC 3 project I am working on commits/rolls back whatever insert/update calls I make at the end of the current session. This works fine in most cases except for now where I am doing multiple inserts. When a csv is uploaded to the site, each…
getit
  • 623
  • 2
  • 8
  • 30
0
votes
1 answer

Difference between session per request and Open Sesson in view pattern

Folks, what's the difference between Open Session in View and Session per request pattern? I am using Spring MVC and Hibernate . I am not talking about the transaction demarcation here, for Session per request seems to be 1 session:1 tx. But for…
Achow
  • 8,600
  • 6
  • 39
  • 49
1
2