Aha, I had missed the Fluently.Configure(cfg) overload. For any time
travellers from the future, add a new INHContributor to your
ActiveRecordStarter like so:

public class FluentNHContributor : AbstractNHContributor
{
    public override void Contribute(Configuration configuration)
    {
        Fluently.Configure(configuration)
            .Mappings(m =>
            {
                m.FluentMappings.Add<MyFNHClassMap>();
                m.Apply(configuration);
            });
    }
}

ActiveRecordStart.AddContributor(new FluentNHContributor());

Sweet like chocolate.

2009/8/26 James Gregory <[email protected]>

> I'm not familiar with how AR is hooked into NH, but if you have access to
> an NHibernate Configuration instance then you can get FNH in there.
>
>
> On Wed, Aug 26, 2009 at 10:34 AM, Lee Henson <[email protected]>wrote:
>
>>
>> Hi
>>
>> I have a couple of applications I'm currently working on, one uses FNH
>> and the other has a large ActiveRecord-mapped model. I'm keen to
>> gradually phase out AR in favour of FNH, and I'd like to know if it's
>> possible to hook into the NH startup process somehow and inject FNH
>> mappings?
>>
>> Cheers
>> Lee
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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