I notice sometimes with my parent/child objects or many-to-many relationships, I need to call either SaveOrUpdate
or Merge
. Usually, when I need to call SaveOrUpdate
, the exception I get on calling Merge
has to do with transient objects not being saved first.
Please explain the difference between the two.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…