到目前为止,我掌握Fluent NHibernate的最大障碍是找到我需要通过我找到的示例(博客文章,SO问题等)处理的类的命名空间。我四处寻找一个类似CHM或MSDN的网站,可以更容易地找到东西,但我发现是空的。我可以找到 NHibernate API 文档,但找不到 Fluent NHibernate API 文档。
任何人都可以确认我需要在构建源代码后生成自己的源代码或将我指向我错过的地方吗?
我一直在使用反射器来查找东西并且它有效,但它并不理想。
我建议使用某种能够自动解析命名空间的IDE(Visual Studio,Sharpdevelop等),然后您只需要复制粘贴示例并使用它。
有用的资源
- 开始
- 显示自动映射的示例项目
抽象
namespace | used for
-----------------------
.Cfg | fluently configuring the NHibernate.Cfg.Configuration object
.Mapping | contains classes used to create Fluent Mappings
.Automapping | all you need to automaticly create mappings for classes
.Conventions | Interfaces to define Conventions used for Auto and Fluent mappings