NHibernate.MySQLBatcher is a simple library that allows NHibernate to batch MySQL commands. The was initially a patch built by Oleg Sakharov, but could not be included into NHibernate because of the dependency on mysql.data.
The easiest way to use the library is to install it via NuGet:
Install-Package NHibernate.MySQLBatcher
Then, add the following line to your NHibernate configuration:
config.DataBaseIntegration(
db => db.Batcher<MySqlClientBatchingBatcherFactory>());
Thanks to Diego Mijelshon for pointing this functionality out.
This library is licensed under the LGPL v2.1 because that's what NHibernate is licensed under and I want to stay consistent with that.