Nhibernate 3.2 代码映射,字段映射问题

发布于 2025-01-05 21:33:56 字数 446 浏览 2 评论 0原文

这不完全是一个问题,而是一个答案和警告。

如果您打算使用 NHibernate 3.2 代码映射字段(而不是出于某种原因的属性)。很可能会偶然发现一些阻塞错误,以下是我偶然发现的一些错误(我设法用胶带粘住它们,但花了 10 个小时才找到并修复它们):

https://nhibernate.jira.com/browse/NH-3049

https://nhibernate.jira.com/browse/NH-3055

所以我建议使用映射仅用于属性或在 HBM 中写入映射或使用 Fluent Nhibernate。

This is not quite a question rather then answer and warning.

If you are going to use NHibernate 3.2 code mapping with fields (instead of properties for some reason). Are are likely to stumble on some blocking bugs, here are some I stumbled upon (I manged to duct tape them, but it took 10 hours to find them and fix):

https://nhibernate.jira.com/browse/NH-3049

https://nhibernate.jira.com/browse/NH-3055

So I recommend to use mapping only to properties or write mappings in HBM or use Fluent Nhibernate.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文