What is the usage of Session.Merge method in NHibernate?
When can we use of this method?
What is the usage of Session.Merge method in NHibernate?
When can we use of this method?
Try look here:
NHibernate - Difference between session.Merge and session.SaveOrUpdate?
from the above post:
You should use Merge() if you are trying to update objects that were at one point detached from the session, especially if there might be persistent instances of those objects currently associated with the session. Otherwise, using SaveOrUpdate() in that case would result in an exception.
© 2022 - 2024 — McMap. All rights reserved.