Ok, but then read this: "NHibernate is lazy, just live with it" http://ayende.com/Blog/archive/2010/08/04/nhibernate-is-lazy-just-live-with-it.aspx
2010/8/24 chen leeing <[email protected]> > Thanks, james and José > > I will try ViewModel later. > *Now, i'm set lazy to 'False' to fix this problem.* > * > * > *Thanks very much!* > * > * > *Regards, > litgle > * > On Tue, Aug 24, 2010 at 8:18 PM, José F. Romaniello < > [email protected]> wrote: > >> I agree with James, I have tried this long time ago, but I ended with this >> and other problems. Avoid it, write ViewModels >> >> 2010/8/24 James Gregory <[email protected]> >> >> For exactly this reason, you shouldn't really bind directly against >>> your domain entities; you should project those entities into DTOs and/ >>> or ViewModel's and bind against those instead. >>> >> >> -- >> 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]<nhusers%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- 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.
