I have .NET Core 3.1 and EntityFrameworkCore 3.1.8.
In a command (which writes data to db) I use SaveChanges() method multiple times. Therefore, I decided to make all these transactional and use TransactionScope() like this:
using (var scope = new TransactionScope())
{
}
Is this a correct approach? Will this work correctly?
Note: I have one DbContext