I am using C# and EF to work with a SQL Server database.
I need to do several queries at a time. For now I'm doing all the operations together and in the end I'm calling the DbContext.SaveChanges
function to apply all the changes at once.
My problem is that if one of the queries has an error, all the queries are cancelled.
Do I need to call the DbContext.SaveChanges
for every query for this?
Thanks