Archive of stories published by Brett’s dev log

多重TransactionScope與TransactionScopeOption

TransactionScope: 使應用程式層可以更簡單地管理交易,甚至可做到跨資料庫的統一交易,
用法請參照 MSDN-TransactionScope
 

TransactionScopeOption: TransactionScope建構時可傳入的列舉參數,擁有三種不同類型。
以下節錄自 MSDN-TransactionScopeOption



1. Required 
交易是範圍所需的,如果已經存在環境交易,則會使用環境交易,否則會在進入範圍前建立新的交易。這是預設值。 

2…

These were the top 10 stories published by Brett’s dev log; you can also dive into yearly archives: 2011, 2012, 2014, 2015, 2017, and 2023.

About
Brett’s dev log
just something need to be logged down
More information
Tags
Editors