I agree, this would be nice to have.

This is what I do now, which isn't too bad, but a conventions would be
even better.

                return AutoMap.Assemblies(_assemblies)
                    .IgnoreBase<OfeEntity>()

                     // Only map subclasses of OfeEntity
                    .Where(t => t.IsSubclassOf(typeof(OfeEntity)))

                    .Conventions.Add(
                        DefaultCascade.All(),
                        DefaultLazy.Always()
                    );

-Tom Bushell
On Jan 30, 7:29 pm, Hoang Tang <[email protected]> wrote:
> Currently we have certain conventions such as
>
> AutoMap.AssemblyOf<User>(new AutoMapConvention())
>                 .Conventions.Add(DefaultLazy.Always())
>
> Can we also have something like
> .Conventions.ImportType<SomeBaseType>()? or SomeBaseInterface
>
> I've looked at Arthur way of doing 
> thishttp://groups.google.com/group/fluent-nhibernate/browse_thread/thread...
>
> Which use a custom IMapping then we can use reflection to import them.
> It work but it's not really clean... So I think it would be nice to
> have this kind of functionality baked directly into fluent...
>
> Thought?

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en.

Reply via email to