实体框架 4 + CTP 4 + Oracle ODP 使它们能够协同工作吗?
我正在尝试设置一个使用(在框架 4.0 上)的应用程序:
- Entity FrameWork 4
- CTP 代码优先,具有 EF 支持
- Oracle 11g 数据库,具有 Oracle ado.net 提供程序(ef 支持仍处于 beta 版本)
- Silverlight 4 (但这无关紧要)
……全部在一起。这很疯狂还是有道理?
使用sql服务器当然没有问题,但是随着oracle音乐的变化...
我试图不使用第三方提供商或nHibernate ORM(我需要EF!)
有没有人已经成功完成此操作? 我已经尝试过但效果不佳,也许有人已经做到了 Ascolta 以正确的方式。如果是,怎么办?
预先感谢
编辑
@Tridus
当我切换到 Oracle 提供程序时出现此错误:
[无法找到请求的 .Net Framework 数据提供程序。它可能没有安装]
在 VS 中我可以看到“Oracle Database (Oracle ODP.NET)”,因此 Provider 已安装。
在web.config中连接字符串是
<连接字符串> <添加名称=“BlogContext”connectionString=“数据源=HR/******@127.0.0.1//XE”providerName=“Oracle.DataAccess.Client.OracleConnection,Oracle.DataAccess,Version=2.112.2.30 ,文化=中性,PublicKeyToken=89b483f429c47342"/>
我注意到的唯一一件事是我安装了 Oracle Express 10gg,而不是完整的 11g。
有什么建议可以解决我的问题吗?
I am trying to set up an application that uses (on framework 4.0):
- Entity FrameWork 4
- CTP code first with EF support
- Oracle 11g Database with Oracle ado.net provider (ef support still in beta version)
- Silverlight 4 (but this is irrelevant)
...all togheter. it's crazy or make sense?
using sql server of course no problems, but with oracle music changes...
I'm trying not to use third-party providers or nHibernate ORM (i need EF!)
Is there anyone who already done this successfully?
I have already attempted with poor results, maybe someone has done it Ascolta
in the right way. If yes, how?
Thanks in advance
Edit
@Tridus
I GOT this error when i switch to Oracle provider:
[Unable to find the requested .Net Framework Data Provider. It may not be installed]
in VS i can see "Oracle Database (Oracle ODP.NET)" so Provider is installed.
in web.config connection string is
<connectionStrings>
<add name="BlogContext" connectionString="Data Source=HR/******@127.0.0.1//XE" providerName="Oracle.DataAccess.Client.OracleConnection,Oracle.DataAccess,Version=2.112.2.30,Culture=neutral,PublicKeyToken=89b483f429c47342"/>
</connectionStrings>
the only thing I noticed is that i have installed Oracle Express 10gg and not the full 11g.
Any suggestion to figure out my issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 EF 4.1(CTP 的发行版本)和 Oracle beta 1 EF 驱动程序,首先使用 DB,除了一些已知问题外,它运行良好。他们没有表明是否支持 Code First,但也没有表示不支持。驱动程序的 Beta 2 显然将于 6 月的某个时候发布,届时我们可能会了解更多信息。
所以首先我建议您更新到 EF 4.1 的发行版本,然后尝试一下。如果您仍然无法让它工作,Oracle 上的此线程论坛 中有开发者的电子邮件地址。他说可以通过电子邮件向他提出 Code First 问题,所以这是您现在最好的选择。
I'm using EF 4.1 (the release version of your CTP) with the Oracle beta 1 EF driver using DB first and with a couple of known issues aside it works well. They haven't indicated if Code First is going to be supported, but they also haven't said it's not supported. Beta 2 of the driver is apparently coming out sometime in June, we might know more then.
So first I'd suggest you update to the release version of EF 4.1, then try it. If you still can't get it to work, this thread on Oracle's forum has the developer's email address in it. He says there to email him with Code First questions, so that's your best bet right now.