使用配置文件配置数据库连接,
<system.data>
<DbProviderFactories>
<add name="oracle" invariant="myoracle" description="Devart dotCweronnect for Oracle" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess" />
</DbProviderFactories>
</system.data>