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:
- do save configuration database info , call
fluent.configure(cfg).database(newdbinfo).buildsessionfactory()
overwriting database info? doesn't work - i see there's
exportto()
function write outhbm.xml
files don't know nhibernate itself, how subsequent creations of configuration know these files? - is there option?
thanks in advance replies.
Comments
Post a Comment