在一流水平,我已经创建了参考:无法设置OdbcConnection到OdbcCommand.Connection
系统::数据:: ODBC :: OdbcConnection连接;
在一些方法我想将它设置为odbcCommand.Connection这样:
::系统::数据:: ODBC ::的OdbcCommand命令; Command.Connection = this-> Connection;
它报告“无法转换参数1‘系统::数据:: ODBC :: OdbcConnection’到‘系统::数据::常见::的DbConnection ^’”
我不明白为什么它谈common :: DbConnection如果Command.Connection期望OdBcConnection? 谢谢
谢谢!但我不明白为什么只有参考是不够的。 – Petr 2009-11-04 08:02:28
我在上面的答案中添加了回复。 – 2009-11-04 09:56:03