I have a problem of implementing an atomic transaction that involves:
- File system operations like add, edit, move, copy and delete files.
- Linq operations (Entity Framework) like add object and save changes.
These two types of operations should be committed\Rolled back together.
I looked around for a solution and found out that (Transactional NTFS & The .NET TransactionScope
class) is my best choice, now my question is does TransactionScope
class supports EF linq operations? if you can provide me with simple examples I'm a bit lost here.