Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

`Method 'DoExecuteBatch' does not have an implementation. #1

Open
phucphanJaneto opened this issue Mar 21, 2018 · 1 comment
Open

Comments

@phucphanJaneto
Copy link

phucphanJaneto commented Mar 21, 2018

After I upgrade Nhibernate to version 5.0.0 and NHibernate.Caches.SysCache2, I get the error message

Method 'DoExecuteBatch' in type 'NHibernate.MySQLBatcher.MySqlClientBatchingBatcher' from assembly 'NHibernate.MySQLBatcher, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

This is my code for this:
var configure = new Configuration().Configure(); configure.DataBaseIntegration(x => { x.Dialect<MySQL5Dialect>(); x.ConnectionStringName = "db"; x.BatchSize = 20; x.Batcher<MySqlClientBatchingBatcherFactory>(); }) .Cache(x => x.UseQueryCache = true) .CurrentSessionContext<WebSessionContext>();

How can I fix this?

image

@Andorbal
Copy link
Owner

It looks like the signature of the DoExecuteBatch method has changed between NHibernate 3.x (which this library targets) and NHibernate 5. The existing method takes an IDbCommand while the new method takes DbCommand. You may be able to change the signature and recompile, but I'm not sure if that will work or not.

Unfortunately, I haven't touched NHibernate or this library in over five years!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants