Is there an actual problem with not doing dynamic updates? If not, then
remember Knuth's rules for optimizations:
1) Don't do it.
2) Don't do it yet.
The NHiA-Book uses detached objects with multiple sessions for their
examples. This translates directly into AR w/o SessionScope which uses a
separate session and transaction per operation.
-Markus

2009/8/6 Gerdus van Zyl <[email protected]>

>
> Hi,
>
> What is the recommended way of using sessionscope in a window form
> project? (many forms open at once)
>
> The solution that came close to working is to have a
> sessionscope(flushaction.never) on application load and then save
> within a transactionscope. This did not work since I am getting
> "object can't be associated with more than one session" errors. I also
> tried SaveCopy which worked with single object but not if it had a
> hasmany relationship.
>
> Alternatively the app works fine without a sessionscope and I can live
> without the batching and first level cache but would like to get
> dynamicupdate working. I have information on which properties have
> changed  so how can I share that info with nhibernate so it only
> generates updates with the changed columns?
>
> thank you.
> Gerdus
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to