NHibernate 3.2 Loquacious API 入门 [英] Getting started with NHibernate 3.2 Loquacious API

查看:16
本文介绍了NHibernate 3.2 Loquacious API 入门的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一个新项目,我想使用 NHibernate 3.2.我知道它现在可以做类似于 FluentNHibernate 的事情,我想尝试一下.

I'm starting a new project and I want to use NHibernate 3.2. I know that it can now do something similar to FluentNHibernate and I want to give it a try.

但是我很难找到有关 Loquacious API 的文档.我看过博客 关于如何配置 ISessionFactory 的帖子,但在这之后我迷路了.我知道 3.2 API 发展很快,而且那篇大约 3 到 4 个月前的文章已经过时了,但我正在寻找最新信息.

But I am having a hard time finding documentation on the Loquacious API. I've seen blog posts on how to configure the ISessionFactory, but I'm getting lost after this. I know that the 3.2 API is moving fast and that article about 3 to 4 months old are already out of date, but I'm looking for the most recent information.

在哪里可以找到有关以下方面的资源:

Where can I find the resources concerning:

  • 如何在不使用 XML、不使用 FluentNHibernate 和不使用 ConfORM 的情况下设置 NHibernate 3.2?

  • How to setup NHibernate 3.2 without using XML, without using FluentNHibernate and without using ConfORM?

如何注册映射?

如何创建约定?

请记住,这与 NHibernate 3.2(可能更高)有关.如果映射和约定等任何概念不再适用,请您能指出我正确的方向吗?

Please remember that this is concerning NHibernate 3.2 (and probably above). If any of the concepts like mappings and conventions no longer apply, please can you point me into the right direction?

我有一些使用 NHibernate 和 FluentNHibernate 的经验,因为我将它们用于一个小项目,但并不是很复杂.

I have some experience with NHibernate and FluentNHibernate as I used them for a small project, but it was not very complicated.

推荐答案

我已经在尝试用我博客上的系列帖子来填补按代码映射的文档和示例中的那个漏洞.我正在尝试查看支持的内容并将按代码映射的可能性与 Fluent NHibernate 进行比较.以下是帖子:

I'm already trying to fill that hole in mapping-by-code documentation and examples with the series of posts on my blog. I'm trying to see what is supported and to compare mapping-by-code possibilities with Fluent NHibernate. Here are the posts:

  1. 第一印象
  2. 类似于 Fluent 的命名约定
  3. 房产
  4. 组件
  5. ManyToOne
  6. 继承
  7. 动态组件
  8. 套装和袋子
  9. OneToMany 和其他基于集合的关系类型
  10. 并发
  11. OneToOne
  12. 加入
  13. 任何
  14. 列表、数组、IDBag
  15. 地图
  16. Id、NaturalId
  17. 复合标识符
  18. 实体级映射
  19. 总结

这篇关于NHibernate 3.2 Loquacious API 入门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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