c# - Reusing Fluent NHibernate Mappings/Configuration -


i'm trying reduce startup time of apps use fluent nhibernate , have found building configuration 1 of largest costs. i've googled around , tried serializing underlying nhibernate configuration just answer question.

however, don't want save database connection information, have 2 different db technologies , many possible databases. hoping create configurations mappings , save it, doesn't work.

so i'm not sure how go saving mappings. have couple of questions:

  1. do save configuration database info , call fluent.configure(cfg).database(newdbinfo).buildsessionfactory() overwriting database info? doesn't work
  2. i see there's exportto() function write out hbm.xml files don't know nhibernate itself, how subsequent creations of configuration know these files?
  3. is there option?

thanks in advance replies.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -