dotConnect for MySQL (former MyDirect.NET and Core Labs MySQLDirect.NET)
This .NET Framework Class Library is provided by Devart.
The main functionality of the class library is contained in the file Devart.Data.MySql.dll.
Add a reference to the assembly Devart.Data.MySql and include the Devart.Data.MySql namespace. Instantiate a new MySqlConnection connection object. Set the connection string and open the connection.
VB.NET code sample
Imports Devart.Data.MySql
Dim myConnection As MySqlConnection = New MySqlConnection()
myConnection.ConnectionString = myConnectionString
myConnection.Open()
' execute queries, etc
myConnection.Close()
C# code sample
using Devart.Data.MySql;
MySqlConnection myConnection = new MySqlConnection();
myConnection.ConnectionString = myConnectionString;
myConnection.Open();
// execute queries, etc
myConnection.Close();
Description
Direct access to MySQL server through 100% managed code. Note that you also have to reference Devart.Data.dll (not only Devart.Data.MySql.dll).
More info about this class library can be found at the Devart product page.
Download
This .NET Framework Class Library, dotConnect for MySQL (former MyDirect.NET and Core Labs MySQLDirect.NET), can be downloaded here.
Connection Strings
The dotConnect for MySQL (former MyDirect.NET and Core Labs MySQLDirect.NET) class library can be used to connect to the following data sources by using the following connection string references: