Finally I solved the problem!

Every web application has his own unit of work, and the nhibernate
session is managed by the unit of work of the application.

Then the unit of work is injected with Unity into the Customer
repository, so the session was never updated!


I solved the problem using the ISession.Refresh every time I need to
check the Customer's Product.


Thanks kor, your help has been very useful to get to the solution!





On Feb 25, 2:25 pm, abx <[email protected]> wrote:
> Good point. I'm checking how my unit of work is managing the session.
>
> On Feb 25, 12:41 pm, kor <[email protected]> wrote:
>
>
>
>
>
>
>
> > ISession is created before calling ISession.BeginTransaction() ?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to