Home

Awesome

NHibernate.MySqlConnector

This package provides an alternative MySQL/MariaDB driver for NHibernate in addition to NHibernate.Driver.MySqlDataDriver provided by nhibernate-core.

It uses the MySqlConnector library which is an alternative to MySql.Data that may be more performant in both async and sync workloads and fixes dozens of outstanding bugs in MySql.Data.

Usage

Set connection.driver_class in your NHibernate session factory config to:

or use the Configure-by-code helper:

Values of the other parameters should stay the same as when using MySql.Data: