Thanks Fabio,
That got me just what I wanted.

On May 28, 7:25 pm, Fabio Maulo <[email protected]> wrote:
> NHibernate.NHibernateUtil
>
> 2009/5/28 chris <[email protected]>
>
>
>
>
>
>
>
> > hi,
> > I have an object with a lazy collection.  I want to evict the object
> > from my session, but while evicted I need to check the collection to
> > see if it was initialised while the object was in the session.  When i
> > do a
>
> > if (object.collection = null)  ...
>
> > i get a Lazy initialisation outside a session exception, which I'd
> > expect.  I can't seem to find a way to check this with the collection
> > being lazy initialised.
>
> > The collection is mapped as a bag.
>
> > thanks,
> > chris
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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