【发布时间】:2016-10-06 08:30:28
【问题描述】:
我正在尝试为 Oracle 数据库创建实体框架 6 模型。
从 nuget 安装 Oracle.ManagedDataAccess.EntityFramework
https://www.nuget.org/packages/Oracle.ManagedDataAccess.EntityFramework/
然后安装Oracle Developer Tools for Visual Studio 2015:
http://download.oracle.com/otn/other/ole-oo4o/ODTforVS2015_121025.exe
这是我的 app.config:
<configSections>
<section name="oracle.manageddataaccess.client"
type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
...
<entityFramework>
<providers>
<provider invariantName="Oracle.ManagedDataAccess.Client"
type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
...
但是我在添加ADO.NET Entity Data Model 时收到此错误消息:
有什么想法吗?
【问题讨论】:
-
您是否安装了ODAC?如果是,是哪个版本?
标签: c# oracle visual-studio-2015 entity-framework-6