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
Post a Comment