Friday, June 10, 2005

MySQL Connector for Microsoft Data Access Application Block

It’s always a better idea to write generic provider mutual code. That’s why I use Microsoft Data Access block to write all the data access code. By default the Enterprise Library does not comes with the connector for MySQL, but some kind soul created one and provided it at this site. I downloaded it, followed the instruction to put the source in the project“C:\Program Files\Microsoft Enterprise Library\src”, compiled it, put the dll back in “C:\Program Files\Microsoft Enterprise Library\bin”, modified the App.Config by adding another Database Access Instance, add some code. Vala! I can access MySQL Code from Data Access app block code. I also have a sample code written to remind myself how it works.

0 Comments:

Post a Comment

<< Home