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?
SaveChanges
. This is due to howDbContext
internally handles the opening and closing of its connection. – Sines