vs2010下如何使【“System.Data.OracleClient.OracleConnection”已过时】 解决办法

时间:2021-09-11 03:39:36
把app.config文件里面的内容改为如下所示
 
vs2010下如何使【“System.Data.OracleClient.OracleConnection”已过时】 解决办法vs2010下如何使【“System.Data.OracleClient.OracleConnection”已过时】 解决办法
<?xml version="1.0"?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="myAssembly"
                          publicKeyToken="32ab4ba45e0a69a1"
                          culture="neutral" />
        <bindingRedirect oldVersion="1.0.0.0"
                         newVersion="2.0.0.0"/>
        <codeBase version="2.0.0.0"
                  href="http://www.litwareinc.com/myAssembly.dll"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>
View Code