Hi there, I am trying to use Session.Refresh() to rollback changes made to an entity in memory. The entity has a lazy loaded one-to-many association/ collection to other entities (cascade is all-delete-orphans).
When I add an entity to the collection and call Refresh(), it gives me this NHibernate exception: this instance does not yet exist as a row in the database As I see it, "instance" refers to the added entity, which is obviously not persistent in the database. However, I read here (http:// groups.google.com/group/nhibernate-development/browse_thread/thread/ 53aa292a0e451c4d?fwc=1), that refreshing also works on associations. Is that not true for added (or removed) entities? Is Refresh even the right tool for the job? Thanks for your time. -- 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.
