Fluent NHibernate:什么是自动导入?
Fluen NHibernate 中的自动导入约定有何作用(带有“始终”或“从不”选项)?
我在 Fluent NHibernate 的文档上遇到了很大的困难。例如,似乎有一大堆约定快捷方式,如约定帮助页面中所述。但是,我找不到所有这些内容的列表及其描述。
其他人怎么知道该使用哪个?他们肯定不是都通过阅读源代码来解决这个问题的吗?!是否有我应该查看的 NHibernate 网页?
感谢您的帮助
What does the AutoImport convention in Fluen NHibernate do (with options Always or Never)?
I am having a really hard time with the documentation for Fluent NHibernate. For example, there seem to a whole bunch of Convention Shortcuts, as described on the conventions help page. However, I can not find a list of all of them, with their descriptions.
How does everyone else know which to use? Surely they are not all reading through the source to work it out?! Is there a NHibernate web page I should be looking at?
Thanks for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果“AutoImport”设置为“Never”,它会让您通过使用带有命名空间的完整名称来声明类,如果设置为“always”,则不需要命名空间。下面这个链接中提到的内容更广泛。
If the AutoImport is set to Never it makes you declare classes by using there whole name with namespace and if set to always you dont need the namespace. Its mentioned in this link below more extensive.
Fluent NHibernate DuplicateMappingException with AutoMapping