问题
I've been tasked with writing a few custom C# reporting programs for a client. These programs will only read the Oracle databases, never update or change the data.
Is there any significant advantage to using ODP.Net over ODBC? I know several people that advocate using Oracle's Instant Client (I think it includes ODP.Net) because it's easier to deploy (supposedly) than having the client install the ODBC drivers. Having had no experience with deploying apps that rely on ODBC or ODP.Net, I can't make a good decision.
So, any advice from someone that's been through this?
Thanks so much!
回答1:
ODP.NET! I can vouch for easy deployment with instant client and odp. Definitely the way to go.
回答2:
When in doubt use the native ADO.Net Managed Provider for your database in favor of ODBC Drivers.
来源:https://stackoverflow.com/questions/6834084/odbc-or-odp-net-for-c