2013-11-22 23 views
9

安装实体框架6.0.1之后的ADO.NET提供者,我不断收到没有实体框架提供发现用于固定名称“Oracle.ManagedDataAccess.Client”

MAXModel.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.(见下图),一个错误

enter image description here

在我安装之前,它很好。

我使用的是MVC 4.

谢谢。 robotron

回答

21

当前版本的Oracle Managed ODPEF 6不兼容,学会了这种难办法。改为使用EF 5

有一张票在oracle支持打开,我现在找不到它。

编辑

我这今天的另一给予好评,所以我想我补充一点的ODP.net最新版本现在支持EF 6

再次编辑

由于而回一个official ODP.NET entity framework package is available at nuget (link)

+0

这就是我发布问题后一样,使用EF 5.忘了发布的解决方案。使用EF5后,一切正常。谢谢回复。 – Robotron

+0

安装ODP.NET后,使用EF 6。 – omixam