oracle System.Data.OracleClient 命名空间已停止使用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1004484/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
System.Data.OracleClient namespace discontinued?
提问by Michael Kniskern
I just read this articletoday about how Microsoft decided to remove the System.Data.OrcaleClient
namespace from .NET 4.0 library.
我今天刚刚阅读了这篇关于 Microsoft 如何决定System.Data.OrcaleClient
从 .NET 4.0 库中删除命名空间的文章。
I used this as my primary tool for working with Oracle databases.
我使用它作为我处理 Oracle 数据库的主要工具。
When I decide to upgrade my applications from the .NET 2.0 to .NET 4.0, what would bee some alternative options for working with Oracle databases in the .NET 4.0 framework?
当我决定将我的应用程序从 .NET 2.0 升级到 .NET 4.0 时,在 .NET 4.0 框架中使用 Oracle 数据库有哪些替代选项?
回答by Christian Shay
Oracle has created a special website for OracleClient developers who are interested in learning about how and why to migrate to the Oracle Data Provider for .NET (ODP.NET).. check it out:
Oracle 为 OracleClient 开发人员创建了一个特殊的网站,他们有兴趣了解如何以及为什么迁移到 Oracle Data Provider for .NET (ODP.NET)。请查看:
http://www.oracle.com/technetwork/topics/dotnet/index-085703.html
http://www.oracle.com/technetwork/topics/dotnet/index-085703.html
(edit: Fixed the broken link)
(编辑:修复了断开的链接)
回答by Joel Coehoorn
Note this excerpt:
请注意此摘录:
Microsoft will still make System.Data.OracleClient available in .NET Framework 4, but it will be labeled as "deprecated"
Microsoft 仍将在 .NET Framework 4 中提供 System.Data.OracleClient,但它将被标记为“已弃用”
So go ahead and keep using it for updating existingapplications where you relied on it previously. But for newdevelopment, you'll want to find an alternative. This shouldn't be too hard, as the whole stated reason it will be discontinued is that most people were already using alternatives. If you read further down the article it lists out the main options:
因此,继续使用它来更新您之前依赖它的现有应用程序。但是对于新的开发,您需要找到替代方案。这应该不会太难,因为将停止使用的全部原因是大多数人已经在使用替代品。如果您进一步阅读文章,它会列出主要选项:
among those who offer such providers are DataDirect Technologies and Devart (formerly known as Core Lab). In addition, Oracle's provider, called Oracle Data Provider for .NET (ODP.NET), is a popular and viable option
提供此类提供商的公司包括 DataDirect Technologies 和 Devart(以前称为 Core Lab)。此外,Oracle 的提供程序,称为 Oracle Data Provider for .NET (ODP.NET),是一种流行且可行的选择
回答by Mac
As Joel noted, the Microsoft ADO .NET provider for Oracle will only be deprecated (which means it will still be available, but unsupported).
正如Joel 所指出的,Oracle 的 Microsoft ADO .NET 提供程序只会被弃用(这意味着它仍然可用,但不受支持)。
Alternatives include :
替代方案包括:
- Oracle Data Provider for .NET. Free (if your time is, that is...)
- DataDirect ADO.NET Data Provider for Oracle. Commercial (no first hand experience on this one, but I know several developers who used it successfully)
- 适用于 .NET 的 Oracle 数据提供程序。免费(如果你有时间,那就是......)
- 适用于 Oracle 的 DataDirect ADO.NET 数据提供程序。商业(没有这方面的第一手经验,但我认识几个成功使用它的开发人员)
More providers can be found here.
可以在此处找到更多提供商。
回答by jle
Oracle Data Provider for .Net is the way to go... although at present, the smallest clickonce deployment that you can do with it is around 30 mb with the Oracle Instant Client .dll files. It is very similar to System.Data.OracleClient but has some snazzy features.
适用于 .Net 的 Oracle 数据提供程序是可行的方法...尽管目前,您可以使用它进行的最小 clickonce 部署大约为 30 mb,其中包含 Oracle Instant Client .dll 文件。它与 System.Data.OracleClient 非常相似,但具有一些时髦的特性。
回答by wweicker
Another one that I haven't seen mentioned yet is dotConnectfrom devart. As Macmentioned, ODP.NET is free "if your time is" and I tend to agree with that, so I'm going to evaluate some commercial options, starting with dotConnect.
我还没有看到提到的另一个是来自 devar 的dotConnect。正如Mac 所提到的,ODP.NET 是免费的,“如果你有时间的话”,我倾向于同意这一点,所以我将评估一些商业选项,从 dotConnect 开始。