What's the difference between, _context.SaveChanges
and _context.AcceptAllChanges()
, is the AcceptAllChanges()
is sort of reloading data from Database or rolling back (discarding) changes made by the user when he didn't use SaveChanges()
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…