New Members FAQ
18 Nov 2009
Could you please guide me, I have database diagram like Visit, appointment, patient, provider, person.
Visit table have relations with appointment ,patient ,provider and person.
I have visit.hbm.xml and visit.cs like all table . Created table with relation using generate schema.
I want to save visit . but it should save all the relevant table also.
How it is possible.? using multilevel hierachy Nhibernate??
Date: 18/Nov/2009 Rating:
You could've replied to that thread itself right. Now i saw ur post.
There is nothing to do in your mappings ie hbm.xml or .cs.
.In your dotnet code add visitId primary key of Visit table to appointment ,patient ,provider and person tables.
.Add this id in .hbm.xml and .cs files of appointment ,patient ,provider and person tables.
.While saving appointment ,patient ,provider and person tables first retrieve the visitId from Visit table and save it in these table.
.While Retriving info from appointment ,patient ,provider and person tables pass visitId as a parameter to the GetFunctions of these tables.
Hope from this you can get some idea.
This thread is locked for new responses. Please post your comments and questions as a
If required, refer to the URL of this page in your
Return to Discussion Forum
Post New Message
Is there any expert to solve this?
what is difference between String and string(data type) in c#?
what is a resource file...
Horizontal Scroll Bar for a listview control
Last 7 Days
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Talk to Webmaster Tony John
Revenue Sharing sites
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.