How to generate entity classes from nhibernate mapping files during runtime.

Posted by Denis Rosca on Stack Overflow See other posts from Stack Overflow or by Denis Rosca
Published on 2010-05-23T16:01:10Z Indexed on 2010/05/24 4:50 UTC
Read the original article Hit count: 423

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate