Entity Framework
TransactionScope内で、await使ったりすると、「TransactionScope は、作成されたスレッド上で破棄される必要があります。」 的な例外が発生します。 using (var ctx = new NorthWindEntities()) { using (var ts = new TransactionScope()) { ctx.Employees…
TransactionScope内で、await使ったりすると、「TransactionScope は、作成されたスレッド上で破棄される必要があります。」 的な例外が発生します。 using (var ctx = new NorthWindEntities()) { using (var ts = new TransactionScope()) { ctx.Employees…