Not sure if I'm following you right but... lazy loading over the wire is a really bad idea. Just.. don't go there.
If you're talking about using lazy loading as part of the servicing of a single WCF call, then sure, thats fine - but you shouldn't need a custom lazy loader to do that. You WILL need to use a pattern that keeps your session open for the duration of the WCF call. We usually call this "session per request" - if you google "NHibernate session per request WCF" you'll get plenty of hits. On Tue, Feb 2, 2010 at 9:38 PM, Peter Derwa <santo...@gmail.com> wrote: > Hey, > > I've downloaded the new version of NHibernate and I found some > comments about the possibilities to create your own custom lazy loader > for the new NHibernate version. > Now that looks great!!! we are using a WCF Service so we are currently > working with lazy = false, and that kinda sucks big time, because when > loading a complete table with lots of relations, that will consume > quite allot of time. > > > Could someone point me into a right direction of how to do that? I was > not able to find the right article yet. > One note to keep in mind, we have multiple projects aka databases, so > in my lazy loading customization i'll have to be able to add that > project ID to create a session to the right database! > > grt > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To post to this group, send email to fluent-nhibern...@googlegroups.com. > To unsubscribe from this group, send email to > fluent-nhibernate+unsubscr...@googlegroups.com<fluent-nhibernate%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fluent-nhibernate?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.