Not working: Lazy FetchWhen.OnInvoke (Parent Child, Heirarchy)

2009-08-10 Thread William Chang
Here is my model setup: I have two entities, List and ListItem. The List class is the parent with the property public virtual List listParent {get;set;} to create the hierarchy. The ListItem class is the child or children, containing items for the list. The problem is when I do a Find() on an

Re: Not working: Lazy FetchWhen.OnInvoke (Parent Child, Heirarchy)

2009-08-10 Thread Markus Zywitza
AR has the problem that if you don't use SessionScopes, it can't use lazy loading at all. Therefore lazy loading was disabled by default. AFAIR you have to set lazy=true in your AR config to enable lazy loading of many-to-one relations. -Markus 2009/8/11 William Chang diehardb...@gmail.com