Nhibernate 3.2 代码映射,字段映射问题
这不完全是一个问题,而是一个答案和警告。
如果您打算使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论