.NET4.0 System.Data.OracleClient过时
微软官方解释:
http://msdn.microsoft.com/zh-cn/library/77d8yct7(v=vs.100).aspx
System.Data.OracleClient 中的类型已过时。这些类型在 .NET Framework 4 中受到支持,但将在以后的版本中删除。Microsoft 建议您使用第三方 Oracle 提供程序。
本节说明特定于适用于 Oracle 的 .NET Framework 数据提供程序的功能和行为。
适用于 Oracle 的 .NET Framework 数据提供程序允许使用 Oracle 客户端软提供的 Oracle 调用接口 (OCI) 来访问 Oracle 数据库。该数据提供程序设计的功能与用于 SQL Server、OLE DB 和 ODBC 的 .NET Framework 数据提供程序的功能类似。
若要使用适用于 Oracle 的 .NET Framework 数据提供程序,应用程序必须引用 System.Data.OracleClient 命名空间,如下所示:
ORACLE ODP.NET官方下载
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html?ssSourceSiteId=ocomcn
Oracle Data Provider for .NET
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.
Download the latest ODP.NET production release in ODAC 11.2 Release 5 (11.2.0.3.20) for 32-bit Windows or Windows x64. This release includes .NET Framework 4.5, Entity Framework, LINQ, WCF Data Services, and implicit REF CURSOR parameter binding support.
解决办法
在.NET4.0及以后,建议下载ODP.NET替换System.Data.OracleClient。