使用事务范围和查询

时间:2010-07-21 08:18:32

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

我正在使用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)

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

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