I would like know what is the best possible way to implement transactions with DBContext
. In particular,
- Does
DbContext.SaveChanges
implement transaction internall if i change multiple entities?
- If i want to call
DbContext.SaveChanges
multiple times(same contxet/different contxets), how transaction can be achieved?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…