问题
According to the latest documentation from Oracle (Data Provider for .Net developer's guide, 12c Release 1)
The Chapter "Installing Oracle Data Provider for .NET, Unmanaged Driver" states that the entity framework provider for the unmanaged driver is available on NuGet http://docs.oracle.com/database/121/ODPNT/InstallODP.htm#ODPNT152
ODP.NET, Unmanaged Driver Entity Framework 6 and Code First functionality are available through a NuGet package. OUI and Xcopy installations include this package as well, but require post-install configuration steps. The NuGet package for ODP.NET, Unmanaged Driver Entity Framework automates these post-install steps, except for the application-specific connection string settings.
I searched for Oracle's official profile on NuGet, and I only see 3 packages from them. https://www.nuget.org/profiles/Oracle
There are lots of other people who have NuGet packages for shipping the Oracle.DataAccess.dll, but aside from the fact that they aren't official, there's nothing about the Entity Framework driver for the Unmanaged client (and I'm fairly sure that's a pretty blatant breach of the OTN license agreement to redistribute the unmanaged dll's...)
So, I've probably answered my own question... but is there anything I'm missing? Using the wrong version of Visual Studio or something? (tried searching within VS2015 and also on NuGet.org) Was there a NuGet package for this and now it's gone?
回答1:
That's a documentation error (and thanks for bringing it to our attention!). As of this writing (2/9/2016) there's currently no official Oracle Unmanaged Nuget packages available. The Entity Framework package currently on Nuget is for the Managed Driver only.
To install and configure ODP.NET Unmanaged Driver and its Entity Framework library, please use either the Oracle Installer install, or the Xcopy install:
http://www.oracle.com/technetwork/topics/dotnet/downloads/index.html
(And if you are planning to use Entity Designer you should make sure to install the 32-bit "ODAC with Oracle Developer Tools for Visual Studio")
来源:https://stackoverflow.com/questions/35297774/nuget-package-for-oracle-unmanaged-provider-with-entity-framework