EF Oracle TNS 连接
时间:2021-07-01 10:21:17
帮助过:35人阅读
*">
<settings>
<setting name=
"TNS_ADMIN" value=
"D:\CPA\instantclient_11_2\"/>
</settings>
<dataSources>
<dataSource alias=
"SampleDataSource" descriptor=
"(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/>
</dataSources>
</version>
</oracle.manageddataaccess.client>
<connectionStrings>
<add name=
"OracleDbContext" providerName=
"Oracle.ManagedDataAccess.Client"
connectionString=
"User Id=oracle_user;Password=oracle_user_password;Data Source=oracle"/>
<add name=
"OracleModel" connectionString=
"DATA SOURCE=CPA_srv2;PASSWORD=*;USER ID=*;"
providerName=
"Oracle.ManagedDataAccess.Client"/>
</connectionStrings>
EF Oracle TNS 连接
标签:style use tor host EDA number prot ali value