根据这篇文章http://social.technet.microsoft.com/wiki/contents/articles/handling-transactions-in-sql-azure.aspx
SQL Azure default database wide setting is to enable read committed
snapshot isolation (RCSI)
我是否正确地假设:
A)以下代码默认为Serializable(覆盖数据库默认值)
using (TransactionScope transaction = new TransactionScope())
{
}
B)以下代码默认为带有快照隔离的ReadCommitted(而不仅仅是普通的ReadCommitted)
TransactionOptions options = new TransactionOptions();
options.Timeout = TimeSpan.FromMinutes(1);
options.IsolationLevel = IsolationLevel.ReadCommitted;
using (TransactionScope transaction = new
TransactionScope(TransactionScopeOption.Required, options))
{
}