错误0152:找不到"Oracle.DataAccess.Client"ADO.NET提供程序的实体框架提供程序

Ale*_*zev 7 oracle entity-framework odac visual-studio-2012

我有Windows 7 x64,带有'ODAC 11.2 Release 5的Visual Studio 2012和用于Visual Studio的Oracle Developer Tools(11.2.0.3.20)'.然后我连接到Oracle db,创建.edmx模型.但是,当我尝试使用EF来操作一些数据时

var ent = new Entities();
var res = ent.table1.ToList();
Run Code Online (Sandbox Code Playgroud)

发生错误

Schema specified is not valid. Errors: 

Model.ssdl(2,2) : error 0152: No Entity Framework provider found for 
'Oracle.DataAccess.Client' ADO.NET provider. 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.
Run Code Online (Sandbox Code Playgroud)

我检查了我的AppConfig,所有部分都没问题.我也安装了ODAC1120320Xcopy_x64(并添加了一个环境变量).但没有变化.

如果我这样做,一切正常

EntityConnection econn = new EntityConnection("name=Entities");
econn.Open();
EntityCommand ecmd = econn.CreateCommand();
ecmd.CommandText = "SELECT e.NAME FROM Entities.table1 as e";
EntityDataReader ereader = ecmd.ExecuteReader(CommandBehavior.SequentialAccess);
while (ereader.Read()) { ... }
Run Code Online (Sandbox Code Playgroud)

你有什么想法吗?非常感谢任何帮助.