Hi,
I want to perform a quick transaction using ef core 6.
This mechanism should be defined in such a way that a deadlock 'll never be happened/occured.
In my code logic, I am sometimes inserting in database entities through
_dbcontext.payments.add( new payment(){amount=20});
and there are some updates and the remaining ones are related to stored procedures call.
inserts and updates in it.
Can anyone suggest me some excellent way to implement a transaction or a best way to avoid deadlocks/blocking here.
I want to complete the commit to either complete or revert/abort the work.
Thank you so much