I have an application that serializes objects over .NET Remoting to another host to be persisted using NHibernate.
Creating and updating objects works correctly. I can use ISession.SaveOrUpdateCopy to delete objects.
When I call ISession.Delete(obj) I get this error: "a different object with the same identifier value was already associated with the session"
Is there any plans to create a DeleteCopy(obj) or perhaps Delete(Type type, long id)?
I can perform a delete like so, but in this case I have to hard code the column name because I get an error if I put the property name in.
session.Delete("from Notice where notice_id=" + n.Id)
|