The only way I know of is to use Session.Find('query'), but this will
be replaced by Session.CreateCriteria().UniqueResult()
(Session.CreateQuery()) in future versions.

This allways gets you a fresh object from the database.


On 7 jan, 00:17, Joseph Lam <[email protected]> wrote:
> I've created this improvement request:http://216.121.112.228/browse/NH-2494
>
> Basically I would like to have a way of making sure that an object
> retrieved from ISession is fresh from the DB, and not from the session
> cache. At the moment is the only fine-grained mechanism to selectively
> bypass session cache on a per-object basis is the Evict() method which
> is not always feasible when the caller does not have reference to a
> previously retrieved instance.

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