我正在将我的经典asp oracle连接从
转换为RAZORstrConnString = "Provider=OraOLEDB.Oracle; " & _
"Data Source=(DESCRIPTION=(CID=MY_APP)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=somehost.com)
(PORT=1524)))(CONNECT_DATA=(SID=somesid)(SERVER=DEDICATED)));" & _
"User Id=myid;Password=mypassword;"
到
var connString = string.Format("USER ID=myid;Password=mypassword;Data Source=(DESCRIPTION = (CID=MY_APP)
(ADDRESS = (PROTOCOL = TCP)(HOST = somehost.com)(PORT = 1524)) (CONNECT_DATA = (SID=somesid)
(SERVER = DEDICATED)))");
var providerName = "Oracle.DataAccess.Client";
var db = Database.OpenConnectionString(connString, providerName);
var qry = "select * from sometable" ;
db.Query(qry);
但是我收到以下错误
无法找到请求的.Net Framework数据提供程序。它可能没有安装。
安装win64_11gR2_client后,我检查了这些
我错过了什么吗?
答案 0 :(得分:2)
您是否在项目中包含了参考文献?