What's the proxyfactory low down?

16 views
Skip to first unread message

Michael Powell

unread,
Jun 7, 2012, 10:49:36 AM6/7/12
to Fluent NHibernate
Need a general idea, what's the proxyfactory low down? As regards
latest FNH? And latest NH that FNH incorporates?

Do we need a proxyfactory or don't we? Is there a "default" one we can
use if we take the configuration line out? Where/how do we obtain
Castle and/or LinFu if we want to evaluate one or both of those?

Am I correct in the assumption that this is only necessary if lazy
loading is a requirement? In other words, if we don't care about lazy
loading, then we can leave the line out and configure our mappings to
not lazy load?

Thanks...

Best regards,

Michael

Oskar Berggren

unread,
Jun 7, 2012, 1:12:26 PM6/7/12
to fluent-n...@googlegroups.com
Since NH 3.2 there is a built in proxy generator which is used unless
you explicitly tell if otherwise in the configuration.

/Oskar


2012/6/7 Michael Powell <mwpow...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group.
> To post to this group, send email to fluent-n...@googlegroups.com.
> To unsubscribe from this group, send email to fluent-nhibern...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.
>

Michael Powell

unread,
Jun 7, 2012, 6:23:38 PM6/7/12
to Fluent NHibernate
Yessir, this is what I've gathered thus far. Is that adequate for most
proxy needs?

Is there any reason to use Castle, LinFu, or Spring (not least of
which is the issue of having to then find and/or build them before
referencing them)?

On Jun 7, 12:12 pm, Oskar Berggren <oskar.bergg...@gmail.com> wrote:
> Since NH 3.2 there is a built in proxy generator which is used unless
> you explicitly tell if otherwise in the configuration.
>
> /Oskar
>
> 2012/6/7 Michael Powell <mwpowell...@gmail.com>:

tbushell

unread,
Jun 8, 2012, 10:21:09 AM6/8/12
to fluent-n...@googlegroups.com
The new, built in proxy generator may break code that was written for older NH versions using Castle (it did for my project, so I had to keep using the earlier version).

So that's one reason to use Castle.  However, I was unable to find good documentation on how to set up Castle with the latest NH versions (this was a few months ago, so maybe that's changed).

-Tom Bushell
> > To post to this group, send email to fluent-nhibernate@googlegroups.com.
> > To unsubscribe from this group, send email to fluent-nhibernate+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages