We don't support that yet, but it is in the pipeline.

You'll have to roll something yourself, but it shouldn't be too difficult.

Something like this should work: http://pastie.org/829499

On Wed, Feb 17, 2010 at 7:12 PM, NickNH <cadil...@gmail.com> wrote:

> Hi,
>
> is there a way to auto-discover ClassMap classes in all (or in a
> subset of) assemblies that are under a given folder? I'm in an asp.net
> project with various assemblies coming from 3rd parties and containing
> ClassMap classes.
>
> With structuremap I can write something like:
>
> ObjectFactory.Initialize(x =>
> {
>    x.Scan(s =>
>    {
>        s.AssembliesFromApplicationBaseDirectory(assembly =>
> assembly.GetName().Name.ToLower().Contains(".web"));
>        s.LookForRegistries();
>    });
> });
>
> For NH I was looking for something like:
>
> var cfg = Fluently.Configure()
>    .Mappings(m =>
> m.FluentMappings.AddFromAssembliesFromApplicationBaseDirectory(
>        assembly =>
> assembly.GetName().Name.ToLower().Contains(".web")));
>
> Thx
>
> --
> 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.

Reply via email to