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

查看:162
本文介绍了入门与NHibernate 3.2贫嘴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.

不过,我有一个很难的贫嘴API查找文档。我见过博客posts 的关于如何配置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:


  • 如何设置NHibernate的3.2,而无需使用XML,而无需使用FluentNHibernate并没有使用符合?

  • 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.

推荐答案

我已经试图填补这个洞映射,由-code文件和与我的博客系列文章的例子。我想看看什么是支持和映射,通过代码的可能性与功能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. 命名约定类似流利

  3. 属性

  4. 组件

  5. 多对一

  6. 继承

  7. 动态组件

  8. set和bag

  9. 一对多等基于集合的关系类型

  10. 并发

  11. 一对一

  12. 加入

  13. 任何

  14. 列表,阵列,IdBag

  15. 地图

  16. 标识,NaturalId

  17. 复合标识

  18. 实体层面的映射

  19. 摘要

  1. First impressions
  2. Naming convention resembling Fluent
  3. Property
  4. Component
  5. ManyToOne
  6. inheritance
  7. dynamic component
  8. Set and Bag
  9. OneToMany and other collection-based relation types
  10. concurrency
  11. OneToOne
  12. Join
  13. Any
  14. List, Array, IdBag
  15. Map
  16. Id, NaturalId
  17. composite identifiers
  18. entity-level mappings
  19. the summary

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

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