How to write a .Net application that works with both SqlServer and Oracle (now that System.Data.OracleClient is deprecated)

前端 未结 13 758
礼貌的吻别
礼貌的吻别 2020-12-23 14:21

see also System.Data.OracleClient namespace discontinued?

(Firstly don’t panic yet, System.Data.OracleClient is not being removed by Microsoft yet, however it is not

13条回答
  •  悲&欢浪女
    2020-12-23 14:57

    I believe that ODBC can still use both SQL Server and Oracle with some transparency, so I would take a look at using ADO.Net with the ODBC provider. It won't give you all of the performance or features that SqlClient or OracleClient would, but it should be pretty close to the same code for Oracle or SQL Server.

提交回复
热议问题