arch/UnitOfWork

About TransactionScope

coskuncinar opened this issue · 3 comments

Hi @xyting
I have a question about TransactionScope
There is IUnitOfWorkOfT in project. But i havent fount how to uset it .
Could you help about subject:
How to use "SaveChangesAsync(bool ensureAutoHistory = false, params IUnitOfWork[] unitOfWorks)"
Thanks in advance

Has anyone got the answer negative or negative?

when I use SaveChangesAsync() it error:
System.InvalidOperationException:“A TransactionScope must be disposed on the same thread that it was created.”

same problem here. Maybe option TransactionScopeAsyncFlowOption.Enabled should be used?