Is it possible to Load hbm.xml info at app startup instead of via an embedded resource?
Posted
by Daniel Auger
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Auger
Published on 2010-06-07T23:48:34Z
Indexed on
2010/06/07
23:52 UTC
Read the original article
Hit count: 194
nhibernate
|nhibernate-mapping
All of the NHibernate examples I've see that use hbm files have the hbm.xml file set as an embedded resource with "do not copy" chosen in the file properties. This means that if a database column name were to change in production, the app would have to be recompiled with the changes in the hbm.xml file during build time.
Is there any way to make NHibernate load the hbm.xml files from the file system at application startup instead of using an embedded version?
© Stack Overflow or respective owner