dotConnect for MySQL (former MyDirect.NET and Core Labs MySQLDirect.NET)
This .NET Framework Class Library is provided by Devart.
The class library is contained in the file Devart.Data.MySql.dll.
The class library is contained in the file Devart.Data.MySql.dll.
Coding
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
C# code sample
VB.NET code sample
Imports Devart.Data.MySql
Dim myConnection As MySqlConnection = New MySqlConnection()
myConnection.ConnectionString = myConnectionString
myConnection.Open()
' execute queries, etc
myConnection.Close()
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();
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
.NET Framework Class Library (dotConnect for MySQL (former MyDirect.NET and Core Labs MySQLDirect.NET)) can be downloaded here.
Connection Strings
Additional info or comments on this class library? Want to submit content?