>
> Does anyone think those types should be mapped by default?

For types that are always going to need a IUserType, it might be a good idea
for us to provide our own implementations and make them part of the default
conventions. I don't want to be stepping on anyones toes though.

Is that something that we could extend by having something like this:
>
convention.LazyLoaded = type=> if
> typeof(IRootAggregate).IsAssignableForm(type)


That sounds like a good idea. I'd suggest calling it GetLazyLoad, or
something similar, to be consistent with the other conventions. We could
probably then remove the DefaultLazyLoad bool property.

Func<Type, bool> GetLazyLoad = type => true; // default

James

On Tue, Jan 6, 2009 at 10:23 PM, Sebastien Lambla <s...@serialseb.com> wrote:

>   That's from memory, so excuse any typo's.
>
>
>
> That's how I implemented the extension method :) Does anyone think those
> types should be mapped by default?
>
>
>
>
>
> Lazy loading convention. The entities that can be retrieved through my
> repository implement IRootAggregate. I'd like a convention to automatically
> set lazy loading on any property linking to IRootAggregate.
>
>
>
> Is that something that we could extend by having something like this:
>
> convention.LazyLoaded = type=> if
> typeof(IRootAggregate).IsAssignableForm(type)
>
> ?
>
> I'm happy to do the work and commit a patch, but may as well enquire what
> people think about the syntax.
>
>
> Thanks for the pointers :)
>
> Seb
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to