My dream scenario in code is to be able to do the following code.
var invoice = new Invoice();
invoice.AddEntry(new InvoiceEntry("Title", unitPrice, quantity);
session.Save(invoice);
And then all the invoice entries will be saved with the invoice.
As I have read and tried that isn't the most efficient way to do it
because then I will be forced to use inverse="false" cause if it would
be true the entries would not be associated with the invoice.
And if I use inverse="false" I will get some unnecessary Update
queries.
Can NHibernate in any way do so I can do as my code example above and
just take the Id (Guid) generated for the invoice and take with it in
the insert queries for the entries?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
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.