【问题标题】:Using transaction scope and querying使用事务范围和查询
【发布时间】:2010-07-21 08:18:31
【问题描述】:

我正在使用带有 oracle DB 的实体框架。我尝试使用事务范围(因为我想要回滚选项):

using (TransactionScope ts = new TransactionScope())
{
      .....
}

问题是当我尝试在 using 语句中查询时,抛出异常:

Unable to load DLL 'oramts.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

我该如何解决这个问题?

【问题讨论】:

    标签: c# database visual-studio oracle entity-framework


    【解决方案1】:

    安装 Oracle 客户端连接软件时,默认安装不包含 Oramts.dll 文件。 我认为您必须安装 Oracle Services for Microsoft Transaction Server 才能使用 TransactionScope。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-03
      • 2012-05-10
      • 2020-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多