MVCプロジェクトでOracleデータベースに初めて接続するプロジェクトを作成しています。私は手紙に指示に従ったソースhereとhereを見つけましたが、まだそれを働かせることはできません。Entity FrameworkをOracle 11gに接続しない
私が続いている手順は、次のとおりです。Oracleのライブラリ
4を参照さ
1)インストールされたOracle開発ツールVisual Studio用
2)インストールEntity Frameworkのバージョン6
3))は、WebへのOracleプロバイダーを追加しました私のプロジェクトのconfigとappの設定 5)データベーススキーマから新しいエンティティデータモデルを追加しようとしましたが、データ接続の設定時にOracleのデータプロバイダが表示されることはありません。それがすべてで解決策をもたらすならば、あなたが見ることができるよう
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="oracle.manageddataaccess.client"
type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
</configSections>
<connectionStrings>
<add name="MinimumInventory" connectionString="Server=SQLServerName\ServerInstance;Initial Catalog=DatabaseName;Integrated Security=True"
providerName="System.Data.SqlClient"/>
<add name="ThirdWaveData" connectionString="Server=OracleServerName;Initial Catalog=databaseName; User Id=myID; Password=myPassword; Integrated Security=True"
providerName="Oracle.ManagedDataAccess.Client"/>
</connectionStrings>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
</providers>
、私はまた、SQLサーバに接続しています:
は、ここに私のWebConfigです。