Xpo naturally supports mysql. You only need to add MySQL to the project. data DLL (available from the MySQL official website to download ctor/net) and devexpress. xpo. v9.2.providers DLL reference, and you can specify MySQL when constructing xpodatalayer at the project entry point.
However, problems occur during testing. The version 9.2.10 xpo in the hand is 5.2.5.0 MySQL during compilation, and the latest version downloaded is 6.2.2.0, which cannot be used.
At this time, we can modify and re-compile the xpo source code, but I don't think anyone is happy to do this.
There is also a simple way to add the following code to the config file:
Config <? XML version = "1.0"?>
<Configuration>
<Runtime>
<Assemblybinding xmlns = "urn: Schemas-Microsoft-com: ASM. V1">
<Dependentassembly>
<Assemblyidentity name = "mysql. Data" publickeytoken = "c5687fc88969c44d" Culture = "neutral"/>
<Bindingredirect oldversion = "5.2.5.0" newversion = "6.2.2.0"/>
</Dependentassembly>
</Assemblybinding>
</Runtime>
</Configuration>
Specify the oldversion and newversion.