[英]System.Data.OleDb as alternative to System.Data.OracleClient (C#)
Since System.Data.OracleClient
is deprecated in .NET 4.0 and will be discontinued in a future version of the framework, I would like to try to use OleDb as an alternative. 由于
System.Data.OracleClient
在.NET 4.0中已弃用,并且在框架的未来版本中将不再使用,因此我想尝试使用OleDb作为替代方法。
What are the differences between System.Data.OleDb
and System.Data.OracleClient
when accessing an Oracle database? 访问Oracle数据库时,
System.Data.OleDb
和System.Data.OracleClient
有什么区别? Is System.Data.OracleClient
offering more features? System.Data.OracleClient
是否提供更多功能?
Will access to Oracle via OleDb continue working with future .NET framework versions? 通过OleDb访问Oracle是否可以继续与将来的.NET Framework版本一起使用?
Note: I tried ODP.NET, but I got the " The provider is not compatible with the version of Oracle client " problem and did not manage to solve it, that's why I was wondering if OleDb could be an alternative. 注意:我尝试了ODP.NET,但是遇到了“ 提供程序与Oracle客户端版本不兼容 ”的问题,并且没有设法解决,这就是为什么我想知道OleDb是否可以替代的原因。
It's only marked as deprecated, which means that it will no longer updated or developed by Microsoft an might be removed in future versions of .NET framework. 它仅被标记为已弃用,这意味着它将不再由Microsoft更新或开发,并且可能在将来的.NET Framework版本中删除。 But it's stil in the .NET 4.5 preview release:
但这在.NET 4.5预览版中仍然很久:
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/71e232a7-e845-442e-9e36-f203e14fa196/ http://social.msdn.microsoft.com/Forums/zh-CN/netfxbcl/thread/71e232a7-e845-442e-9e36-f203e14fa196/
So in my opinion, there is no need to change to an (expensive) 3rd party component at the moment. 因此,我认为,目前无需更改(昂贵的)第三方组件。 Of course you can try, but I would wait until the release of .NET 4.5 or a later version and see what will be available then.
您当然可以尝试,但是我要等到.NET 4.5或更高版本发布之后,再看看有什么可用。
You really need to resolve your DLL versioning issues that prevent you from using ODP.Net. 您确实需要解决阻止使用ODP.Net的DLL版本控制问题。 We use ODP.Net in several enterprise web applications.
我们在多个企业Web应用程序中使用ODP.Net。 It is required for proper support of Entity Framework among other things.
除其他事项外,它是对Entity Framework的适当支持所必需的。 I recommend a full de-install and re-install of the Oracle Client.
我建议完全卸载并重新安装Oracle Client。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.