C# DataExecutor class available

Originally published on eve.gd on 26 June 2007.

Read this post on the web (with images, PDF and citation details)

One of the questions I see most frequently on Freenode's ##csharp irc channel is how to use a MySql Database in .NET. I've therefore provided the class that I use for basic database operations. You can find it at http://www.martineve.com/2007/06/25/c-mysql-dataexecutor-class/.

http://www.martineve.com/2007/06/25/c-mysql-dataexecutor-class/

The class supports both strongly and weakly typed datasets and usage is as follows:

1. Get the MySql Connector.NET

2. Reference it in your project

3. Use the following for strongly typed datasets: