简体   繁体   中英

No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'

After installing Entity Framework 6.0.1, I keep getting an error

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. (see Figure below)

在此输入图像描述

Before I installed it, it was fine.

I'm using MVC 4.

Thank you. robotron

The current version of the Oracle Managed ODP is not compatible with EF 6 , learned this the hard way. Use EF 5 instead.

There is a ticket open at oracle support, I can't find it right now though.

EDIT

I got another upvote on this today, so I thought I'd add that the newest version of ODP.net now supports EF 6 .

EDIT AGAIN

Since a while back an official ODP.NET entity framework package is available at nuget (link)

Try to use ODAC 12c Release 3 which includes support for Entity Framework 6 Code First and Code First Migrations; NuGet, .NET Framework 4.5.2; and ODP.NET, Managed Driver XML DB. As per

http://www.oracle.com/technetwork/topics/dotnet/whatsnew/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM