MySql Connector/Net is not working properly. The team working on bugs is only 3 people and they do not resolve complex issues. There are still unresolved issues from 2009. I want to customize their connector so that it works for my complex situation. How can I use a customized version in my project instead of theirs?
Share
Step 1) Download
In order to customize a version of oracle’s mysql connector / net you are going to have to download the source code here: http://dev.mysql.com/downloads/connector/net/
Step 2) Open
Next, you are going to have to unzip the downloaded source files. The meat of the connector will be in two of the projects,
MySql.DataandMySql.Data.Entity( What is in a mysql provider? ).Step 3) Edit The Connector
Make any edits to the classes you wish in order to fix your complex situation.
Step 4) Remove the signature
This step will make redistributing your edits undesirable, you may sign it and make the changes if you wish but for a local deployment it is unnecessary.
MySql.Data.Entity‘sAssemblyInfo.cscomment out this line:MySql.Data‘sAssemblyInfo.csmake these changes:Step 5) Compile and Build In Order
Build
MySql.Datafirst. Once built, openMySql.Data.Entity. There will be a warning about not being able to findMySql.Data. Add the reference to the newly builtMySql.Datainside of thebin/Debugfolder. BuildMySql.Data.EntityasRelease.Step 6) Move the files
Inside of the
bin/Releasefolder ofMySql.Data.Entityshould be bothMySql.DataandMySql.Data.Entity. Take each one and overwrite their counterparts in your project’spackagefolder.Step 7) Update References in your project
Inside of your project, go to the references area. Remove both
MySql.DataandMySql.Data.Entity. Right click onReferences, clickAdd Reference, select theBrowsetab, navigate to the package folder, and then add bothMySql.DataandMySql.Data.Entitythat you placed there in Step 6.Step 8) Modify
web.configThere will be several mentions of
MySql.Datainside ofweb.config. Each one of them will havePublicKeyToken=c5687fc88969c44dwhich must be removed (from all of them).Step 9) Make it so
Enjoy your customized connector!