为什么对MySQL的不是NHibernate的支持批处理 [英] Why doesn't NHibernate support batching on MySql

查看:165
本文介绍了为什么对MySQL的不是NHibernate的支持批处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到了几个地方的,人们说这是不支持的,但我不能找到问题的根源是什么。

  • 有一个问题与MySQL ado.net提供商?
  • 有什么关于MySQL本身?
  • 在它是否只是没有得到执行?

我最近发现这个补丁NHibernate的可能会解决这个问题,有没有人验证了这是一个解决方法吗?

有另一种不支持的解决方法吗?

解决方案
  
      
  • 在它是否只是没有得到执行?
  •   

是正确的答案。

使用参考MySql.Data补丁不会得到,因为由Rippo提到的理由归结为主干目前的形式。

不过,你不需要与修补程序编译NH。你可以只注入新的配料。

这是那么容易,因为:

  config.DataBaseIntegration(
       DB => db.Batcher&其中; MySqlClientBatchingBatcherFactory>());
 

I've found a couple places where people say it's not supported, but I can't find what the root cause is.

  • Is there an issue with the mysql ado.net provider?
  • Is there something about MySql itself?
  • Has it just not been implemented?

I recently found this patch for nHibernate that may resolve the issue, has anyone verified this as a workaround?

Is there another unsupported workaround?

解决方案

  • Has it just not been implemented?

Is the right answer.

The patch using a reference to MySql.Data will not get into the trunk in its current form because of the reasons mentioned by Rippo.

However, you don't need to compile NH with the patch. You can just inject the new Batcher.

It's as easy as:

config.DataBaseIntegration(
       db => db.Batcher<MySqlClientBatchingBatcherFactory>());

这篇关于为什么对MySQL的不是NHibernate的支持批处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆