How to run two Entity Framework Contexts inside TransactionScope without MSDTC?
问题 This problem is not readily reproducible in a simple example here but was wondering if anyone has any experience and tips, here is the issue: using Entity Framework have many points in application where (1) data is written to some entity table e.g. Customer, (2) data is written to history table both of these actions use Entity Framework, HOWEVER, they use different contexts these actions need to be both in one transaction : i.e. if one fails to write, the other should not write, etc. I can