Geeks With Blogs
Bob Palmer's Developer Blog .NET, SQL, and Silverlight Development

I've finally had a chance to continue my NHibernate tutorial series after a series of vacations and events.  In this tutorial, I cover one of the most common relationships, that of the parent-child, in NHibernate.  I also go through some optimization refactoring along the way.

You can view the entire Google Docs article here:

http://docs.google.com/Doc?docid=0AUP-rKyyUMKhZGczejdxeHZfMzBmdjdzZDlkaA&hl=en

 

As always, feedback is appreciate!

-Bob

Posted on Friday, June 11, 2010 10:57 PM | Back to top


Comments on this post: NHibernate tutorial #6 - Parent-Child Relationships

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
Bob -

I've really enjoyed going through your tutorials. I am quite looking forward to seeing more!

I have just one small tweak: in the OrderHeader class
GetOrderTotal needs to be virtual, otherwise I get the following error when I try to run CreateSessionFactory:

The following types may not be used as proxies:
ACME.Model.OrderHeader: method GetOrderTotal should be 'public/protected virtual' or 'protected internal virtual'


Best,

- Rich
Left by Rich on Jun 22, 2010 11:22 AM

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
Indeed, great stuff. Thank you.

Regards
Left by Marko on Jul 20, 2010 4:59 AM

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
Dear Sir,

I am Suresh Rayala,working as Software Developer since 1.5 year in Hyderabad.i would like to be worked in your organisation as Developer on .NET,

I request you please conseder my Resume and can gave me opportunity to prove my skills and capabilities.


Thanks&Regadrs
SureshBabu Rayala
Left by suresh on Nov 13, 2010 9:39 AM

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
Great stuff, thanks Bob. More please, when you get time. Best wishes.
Left by Chris on Mar 03, 2011 5:16 AM

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
hi Bob, excellent tutorial, thanks.
Could you add the source code of the tutorials also.that will be helpful
Left by Rajendra Dhaundiyal on Jun 30, 2011 3:25 AM

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
readable, clear, and helpfull tutorials.
thanks erwin
Left by erwin on Sep 16, 2011 9:20 AM

# re: NHibernate tutorial #6 - Parent-Child Relationships
Requesting Gravatar...
Just what the doctor ordered. Thanks a lot.
Left by sylvain on May 29, 2013 9:21 PM

Your comment:
 (will show your gravatar)


Copyright © BobPalmer | Powered by: GeeksWithBlogs.net