实体框架事务 - 未设置隔离级别

时间:2015-03-02 16:06:53

标签: entity-framework transactionscope

当我打电话到我的业务/数据访问层时,我正在传递这样的交易:

TransactionOptions tso = new TransactionOptions();
tso.IsolationLevel = IsolationLevel.ReadUncommitted;
TransactionScope ts = new TransactionScope(TransactionScopeOption.Required, tso);

using (var tx = ts)
{
     // Actual Code Here
}

我遇到的问题是在MSSQL中我看到有些会话具有ReadUncommitted的隔离级别,而有些会话具有ReadCommitted。在某些情况下,我遇到了僵局。 EF不尊重我的选择吗?

0 个答案:

没有答案
相关问题