xxx.config
利用EF框架 Code First 完成
EF連接字符串
<connectionStrings>
<add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=C##用戶名;Password=密碼;Data Source=SampleDataSource"/>
</connectionStrings>
Oracle連接字符串
<oracle.manageddataaccess.client>
<version number="*">
<dataSources>
<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=服務器地址)(PORT=端口(1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)))"/>
</dataSources>
</version>
</oracle.manageddataaccess.client>
