Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

私が System.Transactions.TransactionScope クラスを使わないたった1つの理由

私は System.Transactions.TransactionScope クラスを使いません。理由はMSDTCが無効だと動かないから。
機能面でも System.Data.SqlClient.SqlTransaction クラスで十分です。TransactionScope クラスでないと実装できないのは、複数のDB接続を1つのトランザクションに束ねたいときだけです。