The tutorial guides me correctly to get existing value. But not on creating a new one with one-to-many.
It seems that you are sure _order.OrderLines will never be null.
Is there any specific setting to do so that _order.OrderLines will not null when specifying a new Order? Definitely not by adding OrderLines = new ICollection<OrderLine>() in Order constructor. Mine failed miserably.
_order = new Order
{
OrderNumber = "o-100-001",
OrderDate = DateTime.Today,
Customer = customer
};
_order.OrderLines.Add(line1);
Stupid comment is revised. Must read advance topic and put another Wiki page.
Will never null if class is defined properly with HashedSet and ISet from Iesi.Collections.
private ISet parts = new HashedSet();
public ISet Parts
get { return parts; }
set { parts = value; }
}
(Source: NHibernate Reference)
This is some very valueable information, thank you very much.
<a href="http://www.jihoy.com">free advertising</a> |<a href="www.jihoy.com/.../a>|<a href="http://www.simplyrest.com">sleep number bed</a>
finally i got this code that i've been looking for
<a href="www.availhosting.com/reseller_web_hosting_plans.html">whm reseller hosting</a>
I was just searching for this now finally i got it.thanks for sharing such a nice info.
watchmoviesonlin9.blogspot.com |
<a href="watchmoviesonlin9.blogspot.com/">watchmoviesonlin9.blogspot.com</a> |
<a href="watchmoviesonlin9.blogspot.com/">Watch Movies Online</a> |
<a href="watchmoviesonlin9.blogspot.com/">Online Movies Megavideo</a>