I have a project that is using Fluent NHibernate. When I try to use the DB2Configuration to connect to a DB2 database I receive the following error when trying to build the SessionFactory:
"The IDbCommand and 开发者_Python百科IDbConnection implementation in the assembly IBM.Data.DB2 could not be found. "
The assembly that is included in my install of IBM Client Access V6R1 has a name of "IBM.Data.DB2.iSeries.dll" and not "IBM.Data.DB2". Am I missing something that I am not aware of? Any help would be greatly appreciated.
This error occurs because NHibernate looks for the assembly and the namespaces of the "old" IBM .NET provider (IBM.Data.DB2), and you have the new data provider. This thread might clarify it a bit more. I modified NHibernate source code to make it search for the new namespaces as suggested in the link, but then ran into other problems and decided to look for other options. So I don't have the solution, but hope this helps.
精彩评论