Connecting to DB2 via .NET DbConnection

﹥>﹥吖頭↗ 提交于 2019-12-22 10:52:09

问题


Our current DB Connection provider model relies on database connectivity to use DbConnection (System.Data) based objects.

We can connect to DB2 (*Nix * Windows) via OdbcConnection, but we would like to allow the use of native DB2 Drivers.

Is there any way to do so (either .Net framework, OpenSource or (last choice) vendor) without breaking away from our current DAL model?


回答1:


There is another method not mentioned in the article above, and that is to use DbNetData which simplifies database access and has the ability to connect to DB2 from .NET. The source is hosted on CodePlex below:

DbNetData



来源:https://stackoverflow.com/questions/276505/connecting-to-db2-via-net-dbconnection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!