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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With