using System.Data.OracleClient;
代码示例:
try{ OracleConnection myOracleConnection = new OracleConnection(connectionString); myOracleConnection.open(); OracleCommand command = myOracleConnection.CreateCommand(); ... }
它有效,但我收到了警告:
Warning 3 'System.Data.OracleClient.OracleCommand' is obsolete: 'OracleCommand has been deprecated. http://go.microsoft.com/fwlink/?LinkID=144260'
我有其他选择吗? “Microsoft建议您使用第三方Oracle提供商.” –
Oracle Data Provider for .NET (ODP.NET) features optimized ADO.NET
data access to the Oracle database. ODP.NET allows developers to take
advantage of advanced Oracle database functionality,including Real
Application Clusters,XML DB,and advanced security. The data provider
can be used with the latest .NET Framework 4 version.ODP.NET makes using Oracle from .NET more flexible,faster,and more
stable. ODP.NET includes many features not available from other .NET
drivers,including a native XML data type,self-tuning,RAC-optimized
connection pooling,promotable transactions,and Advanced Queuing.
> ODP.NET for Microsoft OracleClient Developers
> Microsoft OracleClient to ODP.NET Application Migration
原文地址:https://www.jb51.cc/oracle/205199.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。