Is there a way to "Lazy Configure" the mappings from various domains?

Bill's Avatar

Bill

21 Jun, 2010 05:53 PM via web

Can I configure the mappings from one domain, then as needed, Add more mappings from another domain without rebuilding the whole session factory again?

If so, pointing me to an example would be very helpful.

Thanks.

  1. Support Staff 2 Posted by Paul Batum on 27 Jun, 2010 07:05 AM

    Paul Batum's Avatar

    To the best of my knowledge, you can't add additional mappings to a session
    factory that has already been built. But I'm not an NHibernate expert and
    really this is a question about NHibernate's capabilities rather than Fluent
    NHibernate, so I suggest you try asking on the nhibernate
    users<http://groups.google.com/group/nhusers/> mailing
    list.

  2. 3 Posted by mirapalheta on 27 Jun, 2010 05:38 PM

    mirapalheta's Avatar

    I use to rebuild my session factory and replace the old one instance so the
    current sessions continue with the old configuration and the new ones came
    with the new configuration.

    Regards,
    Daniel Mirapalheta

    2010/6/27 Paul Batum <
    ***@tenderapp.com<tender%***@tenderapp.com>
    >

  3. 4 Posted by Bill on 11 Aug, 2010 05:23 PM

    Bill's Avatar

    That is a good idea Daniel. Thanks guys, very helpful!

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What is 14 minus 4?