Entity Framework 6, database-first with ORACLE in MVC 5.2.3 project

asp.net-mvc entity-framework-6 oracle

Question

Can somebody assist me with this mistake? Error after set up connection string and confirm

I'm using.NET 4.6 and MVC 5.2.3. I installed Oracle Developer Tools for Visual Studio (12.1.0.2.4) and ODAC 12c Release 4 from the official Oracle website here (http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html), then I added NuGet packages. Oracle.ManagedDataAccess and the entity framework associated with it

as well as those who create these providers in the webconfig file:

  <configSections>    
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />

<provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />

Anyone who understands this work? What am I overlooking? Thank you for your advice.

1
1
8/2/2018 9:15:42 AM

Popular Answer

Installing the Entity Framework Oracle provider is necessary. There are two methods to achieve that:

  1. In the Package Manager Console execute the following command:

    Oracle.ManagedDataAccess.EntityFramework should be installed.

  2. From this page, follow the instructions for installing and configuring NuGet ODP.NET.

Oracle Data Provider for.NET Install and Configuration Using NuGet

1
8/2/2018 10:35:23 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow