简体   繁体   English

System.Data.OleDb替代System.Data.OracleClient(C#)

[英]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.OleDbSystem.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.

相关问题 C#WebApplication-找到System.Data.OleDb但几乎为空 - C# WebApplication - System.Data.OleDb found but nearly empty C#使用System.Data.OleDb的问题 - C # using System.Data.OleDb problem 使用System.Data.OracleClient配置Fluent NHibernate - Configuring Fluent NHibernate with System.Data.OracleClient 将TransactionScope与System.Data.OracleClient一起使用-TransactionAbortedException - Using TransactionScope with System.Data.OracleClient - TransactionAbortedException 如何在C#中使用System.Data.OracleClient连接到远程Oracle数据库 - how to connect to remote oracle database using System.Data.OracleClient in c# 有没有一种方法可以使用System.Data.OracleClient将自定义类型从C#传递给Oracle? - Is there a way to pass a custom type from C# to Oracle using System.Data.OracleClient? PlatformNotSupportedException:此平台不支持 System.Data.OleDb - PlatformNotSupportedException: System.Data.OleDb is not supported on this platform 即使使用 System.Data.OleDb,C# 也找不到命名空间 OleDbConnection - C# cannot find namespace OleDbConnection even though using System.Data.OleDb is there 使用C#,是否可以使System.Data.OleDb处理特殊字符? - Using C#, is it possible to make System.Data.OleDb handle special characters? Vidual Studio 2017 C# System.Data.OleDb 无法读取较新的 Excel 文件 - Vidual Studio 2017 C# System.Data.OleDb cannot read newer Excel files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM