I tjhink that what you're looking is more
SaveOrUpdateCopy; what 'im using if the object is not attached before
f.e delete
Or simply SaveOrUpdate, it will put the entity in your first level
cache. You still need to manage either flush or transaction, depend on
your flushmode.

Evict evict the entire objet, so the graph (as far i've been in nh
sources).
Lock attach the object.

Fba.


On 27 oct, 11:49, Daniel Alves <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> Do Anyone knows if the Evict method from ISession is applied to the
> whole graph of the object that you pass to it or just on the first
> level (the proper object)?
>
> And I have to replicate the data from one database to another, but
> using replicate I receive StaleObjectStateException... any glues?

--~--~---------~--~----~------------~-------~--~----~
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