Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

I am developing a project which that makes dynamic forms and dynamic tables DB as well. The problem is using NHibernate!
As NHibernate needs mapping file and its stuff.
I can make those mapping files dynamically and then compile them, but it will be messy code.

What's your suggestion?

[removed email address]
Posted
Updated 14-Jun-10 0:30am
v3
Comments
LittleYellowBird 14-Jun-10 6:30am    
Best not to include your email address, it just increases spam. :-)

1 solution

You have answered your own question, if you want to do this dynamically and use NHibernate you will need to make the map files dynamically.

Theoretically, it might be easier to use the .net entity framework. You can decorate the class with the tablename and properties with column names much more cleanly, but you will face other problems with this too, so it is a good idea to research this first.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900