与NHibernate 4升级重大变化 [英] Breaking changes with NHibernate 4 upgrade

查看:323
本文介绍了与NHibernate 4升级重大变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以看看有什么新的和固定的 NHibernate的4.0

I can see what's new and fixed in NHibernate 4.0

我想知道如果任何人有问题,与HBM映射升级从NHibernate的3〜4?

I would like to know if anyone has had issue with hbm mappings upgrading from NHibernate 3 to 4?

我担心,更多的重点是这些天怎么回事流利的映射。我可以测试比较明显的重大更改,但想知道是否有任何细微的问题,任何人都碰到过在生产环境中,可能无法在第一次那么明显了。

I fear that more focus is going on fluent mapping these days. I can test for the more obvious breaking changes but wanted to know if there were any subtle issues that anyone has come across in a production environment that may not be so obvious at first.

它看起来像一个重大的升级,你会期望那里是回归的风险。

It looks like a major upgrade and you'd expect there to be the risk of regressions.

推荐答案

仅供参考,我发现即抛出一个新的错误。我们使用Mapping通过代码,我们曾经有过多个映射与实体的类型设置为加入与NHibernate v 3.3.x.这是不再允许在4.0.x的版本

FYI, I found a new error that is thrown. We use Mapping By Code, and we used to have an entity that had multiple Bag mappings with the Fetch type set to Join with NHibernate v 3.3.x. This is no longer allowed in version 4.0.x.

我们收到的无法同时获取多个袋一个错误消息。,这是有道理的什么的背后是必要的场景,但它应该在技术上被认为是一个重大更改。 NHibernate的是不是不够好,告诉我们哪些映射是导致该问题。

We received an error message of Cannot simultaneously fetch multiple bags., which makes sense with what is necessary behind the scenes but it should technically be considered a breaking change. NHibernate was not nice enough to tell us which mapping was causing the issue.

这篇关于与NHibernate 4升级重大变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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