That is part of your entity and NH have nothing to do with your own code... it is just an ORM
On Wednesday, March 28, 2012 12:45:54 PM UTC-3, Peter Morris wrote: > > Is there a way to get NH to automatically set the single-end of an > association when inserting a child into a many end of a bi-directional > association? Or perhaps an extension? > > e.g. > > purchaseOrder1.Lines.Add(purchaseOrderLine1); would also set > purchaseOrderLine1.PurchaseOrder; > purchaseOrderLine1.PurchaseOrder = purchaseOrder1; would also insert > into purchaseOrder1.Lines; > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/ZIcMiOIRmj8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
