c# 连接oracle驱动,使用C#Framework 3.5连接到Oracle

I am writing a sharepoint webservice for inserting and retrieving data from oracle database in some other servers.Since system.Data.OracleClient is deprecated we have to use oracle.dataaccess dll for connecting to oracle database. But this can only be achieved by using the dependency dlls. How can i achieve this for connecting my sharepoint service to oracle database. Please help!!!!

Talk1:

you might want to try connecting to the database using EnterpriseLibrary Data Access Block and in connection string use providerName="Oracle.DataAccess.Client"

Talk2:

You're using .NET 3.5 in 2015. Why do you care about deprecated OracleClient, out of all things? :)

Talk3:

I want to use it with sharepoint 2010. so i have to deal with this 3.5 framework

Talk4:

We don't say. NET Framework 3.5 is out of date, it is System.Data.Oracleclient which is deprecated for years!

Solutions1

DevArt dotConnect for Oracle had a managed (client agnostic) driver for Oracle well prior to .NET 3.5:

I'm a big fan of Dev Art's driver, but it does cost money. It's pennies on the dollar for the headaches it spares you, however. They do have a free version. I've never tried it, but you may want to check it out.

You've probably already looked into Oracle's managed ODP.net -- I'm pretty sure that requires 4.0, so you're out of luck with that one.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值