MySqlDB_dotNET 1.1.0

The MySqlDB_dotNET Class Library is a high level wrapper around the MySql.

The library is currently compiled at .Net 4.5.2 so it should work with any application running .Net 4.5.2 and above.

Install-Package MySqlDB_dotNET -Version 1.1.0
dotnet add package MySqlDB_dotNET --version 1.1.0
<PackageReference Include="MySqlDB_dotNET" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySqlDB_dotNET --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MySqlDB_dotNET, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MySqlDB_dotNET as a Cake Addin
#addin nuget:?package=MySqlDB_dotNET&version=1.1.0

// Install MySqlDB_dotNET as a Cake Tool
#tool nuget:?package=MySqlDB_dotNET&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Example:
using MySqlDB;

string server = "localhost";
string database = "mydb";
string username = "root";
string password = "toor";

string connectionString = @"Data Source=" + server + "; Database=" + database + "; User ID=" + username + "; Password=" + password + ";";
DBConnection db_conn = new DBConnection(connectionString);

Console.WriteLine("IsConnected: " + db_conn.IsConnected());
if (db_conn == null || !db_conn.IsConnected())
{
Console.WriteLine("Connessione non valida.");
return;
}

string sql = "SELECT ID, Message FROM Logs ORDER BY IDLic;";
DataTable dtLogs = db_conn.SelectTable(sql);

if (dtLogs == null || dtLogs.Rows.Count == 0)
return;

// Loop with the foreach keyword.
foreach (DataRow dr in dtLogs.Rows)
{
Console.WriteLine("Message: " + dr["Message"].ToString().Trim());
}

Example:
using MySqlDB;

string server = "localhost";
string database = "mydb";
string username = "root";
string password = "toor";

string connectionString = @"Data Source=" + server + "; Database=" + database + "; User ID=" + username + "; Password=" + password + ";";
DBConnection db_conn = new DBConnection(connectionString);

Console.WriteLine("IsConnected: " + db_conn.IsConnected());
if (db_conn == null || !db_conn.IsConnected())
{
Console.WriteLine("Connessione non valida.");
return;
}

string sql = "SELECT ID, Message FROM Logs ORDER BY IDLic;";
DataTable dtLogs = db_conn.SelectTable(sql);

if (dtLogs == null || dtLogs.Rows.Count == 0)
return;

// Loop with the foreach keyword.
foreach (DataRow dr in dtLogs.Rows)
{
Console.WriteLine("Message: " + dr["Message"].ToString().Trim());
}

Release Notes

Extensions on the MySqlDB .NetFramework.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 122 10/8/2020
1.0.1 311 6/2/2019