Always use codesmith to generate Oracle CodeRecently, you have to perform operations on MySQL,
Codesmith connection to MySQL error found,
Prompt "failed to Load file orProgramSet "mysql. Data, version = 5.0.7.0, culture = neutral, publickeytoken = c5687fc88969c44d" or one of its dependencies. The Assembly list definition found does not match the Assembly reference. (Exception from hresult: 0x80131040 )"
Copy mysql. Data. DLL to the bin directory under codesmith. The call is still incorrect,
Later, we can see that the mysql. Data. dll file version is 5.2.1.0, which is larger than the error message. It seems that we need to try the next 5.0.7.0,
Is http://ftp.ntu.edu.tw/pub/MySQL/Downloads/Connector-Net/mysql-connector-net-5.0.7-noinstall.zip,
Copy the mysql. Data. dll file to the bin directory under codesmith again, and then configure the test. OK.
It seems that codesmith has killed the database program calling and should be set to a configuration file to allow users to define their own versions so that they can be more flexible.