Expert |
|
Joined: Fri Oct 28, 2005 5:38 pm Posts: 390 Location: Cedarburg, WI
|
If an instance of the "same" Person object (same ID) is already in the NHibernate session you're using to save the Person instance you pass to your PersonProcessor class, then your PersonProcessor class would need to either remove the "old" instance in its session using Evict(), or save the passed-in person using SaveOrUpdateCopy(). I think Evict() will hose things up by removing referenced entities from the session (probably not what you want), so try SaveOrUpdateCopy().
|
|