I would be creating a DTO or DataContract or something to return all the
data you need when you are returning from the service layer.
Does your service layer return domain objects directly?
It would be very easy to return a new type with everything your needed.
On , Jason Meckley <[email protected]> wrote:
correct. as i suspected, the session does not align with the unit of
work. you either need to build up the result before the session closes,
or change the scope of the session so it's still available when you call
entity.Parent.Id.
--
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/-/oWkmb1m-F9MJ.
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.
--
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.