How to generate entity classes from nhibernate mapping files during runtime.
- by Denis Rosca
Hello, i need some help with c# and nhibernate.
I'm working on a project that requires the entity classes to be generated from hbm files at runtime.
I get the mapping files from a service, and then need to generate the classes dynamicaly and configure nhibernate to use them.
The problem is that i'm new to nhibernate and not much of a pro in c#, so me writing the piece of code that achieves this is very error-prone.
I was wondering if you know of any open source software that i could use.
Worst case scenario (if can't find anything that even remotely resembles what i need), do you guys have some advice on where should i start? Maybe some links ?
Thanks, Denis.