wolli wrote:
Hard to say. Code looks ok. Can you enable logging with level DEBUG and see if something is there ?
Thank you for the response. After going into this somewhat further, I found that because the query to retrieve the data uses a different session than the one to delete, it will not delete. If I leave the session open (the one I used to query) until I'm ready to delete, it then works. I have learned that this behavior is because they are not within the same unit of work so when I call the delete on the object, it determines that the object is detached.
I am fine with this behavior except that it doesn't raise an access violation letting me know that it is detached. If it did, I could then re-attach it or perform some other function. Instead, nothing is known so it never deletes. This has it's obvious concerns. Any ideas or thoughts on this?