Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would to like to know one good article or book that learn to map one conceptual model to xml files for use nhibernate, i have one conceptual model finished and i want to create xml files to map and use nhibernate, i am litle confuse with the ideia how to abstract my model in to xml files to map my database using the correct way... i am with my database model read to....

My problem is with the classes using inheritance, i have a lot of classes using inheritance and interfaces, i dont know how top map this situation

I hope that someone here can help me...

Sorry about my humble question

Thank You very much...
Posted

1 solution

Hello,

I learned it the hard way by carefully reading and trying to understand the nhibernate reference guide.
IMHO it is pretty good and understandable although a lot to "digest" at once.

It helped me personally a lot to play around with the examples given in the documentation and adapt them for my uses.

Inheritance Mapping (Chapter 8) is probably what you might want to look into although I would recommend to start with simpler classes first and look manually into the generated sql code to get a feeling what nhibernate can (and cannot).
 
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