Use XPO to connect MySQL versions later than 5.2.5.0

Source: Internet
Author: User

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:

Copy to ClipboardReference: [www.bkjia.com] <? 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.