Peter, I read your posts and everytime you mention "when I 'update' an object". Using NHibernate means you have implicit updates. If you retrieve an aggregate(s) from the database and you update something then calling ITransaction.Commit or Session.Flush will send the update/insert/delete queries to the database.
You should *not* explicitly call ISession.Update or ISession.SaveOrUpdate Another thing is that when you have retrieved an instance via ISession X and you close that session that you cannot save this instance via a new ISession Y. You first need to merge your entity in the new session before you can save it. -- Ramon -- 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.
