How to create dynamic NHibernate mappings without generating HBM XML files? -


i'm working on dynamic application nhibernate. goal create dynamic entities (both class type , mapping xml file) based on data. example suppose want create person entity dynamically in runtime , on fly.

i use reflection.emit generate class type dynamically. creating mapping dynamically used ayende's code.. unfortunately code not work because mappings not have classes property. tried code same codes of castle activerecord , fluent nhibernate generate hbm xml files. don't want generate/create mapping files can not use these solutions.

is there way ayende's solution not forced generate hbm xml mapping files , doing dynamically , in memory?

nhibernate 3.2 has mapping-by-code layer want.

i'm not sure if dynamic classes work, doesn't hurt try.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -