Equality of the domain objects must be overridden for NH to work properly. if they are not already, then you have some major glitches in the design of your domain model. A NH session contains/is an identity map, ensuring that exactly 1 instance of an entity exists per session. this is why sessoin.Get<>() and session.Load<>() work.
However, thinking about this more, it wouldn't really resolve anything across 2 instances of a consumer because each consumer would have it's own unique session. So entity equality, while it's needed for NH, wouldn't resolve your problem. Matt's approach would handle this situation for you. -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To view this discussion on the web visit https://groups.google.com/d/msg/rhino-tools-dev/-/H44Rw8WyFfgJ. 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/rhino-tools-dev?hl=en.
