首页 新闻 会员 周边

ef连接oracle 报错

0
悬赏园豆:10 [待解决问题]

EF 连接oracle 时报错,什么原因?

 

The Entity Framework provider type 'System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' did not have a static property or field named 'Instance'. Entity Framework providers must declare a static property or field named 'Instance' that returns the singleton instance of the provider.

mvc
问题补充:

我已经安装了 odp.net,连接oracle 时 ,.edmx文件是必须的么?

银杏叶儿的主页 银杏叶儿 | 初学一级 | 园豆:197
提问于:2015-06-14 09:51
< >
分享
所有回答(2)
0

使用Oracle ODP.NET provider试试,你是不是用的System.Data.OracleClient?可能不支持ef

羽商宫 | 园豆:2490 (老鸟四级) | 2015-06-14 13:50

我已经安装了 odp.net,连接oracle 时 ,.edmx文件是必须的么?

支持(0) 反对(0) 银杏叶儿 | 园豆:197 (初学一级) | 2015-06-18 10:08
0

http://www.cnblogs.com/wlflovenet/p/4187455.html  希望这篇博文里有你想要的答案。

女孩,加油 | 园豆:1098 (小虾三级) | 2015-06-16 11:50
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册