入门与NHibernate 3.2贫嘴API [英] Getting started with 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.
不过,我有一个很难的贫嘴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:
- 的第一印象
- 的命名约定类似流利
- 的属性
- 的组件
- 的多对一
- 的继承
- 动态组件
- set和bag
- 的一对多等基于集合的关系类型
- 的并发
- 的一对一
- 加入一>
- 任何
- 列表,阵列,IdBag 一>
- 地图
- 标识,NaturalId
- 复合标识
- 实体层面的映射
- 的摘要
- First impressions
- Naming convention resembling Fluent
- Property
- Component
- ManyToOne
- inheritance
- dynamic component
- Set and Bag
- OneToMany and other collection-based relation types
- concurrency
- OneToOne
- Join
- Any
- List, Array, IdBag
- Map
- Id, NaturalId
- composite identifiers
- entity-level mappings
- the summary
这篇关于入门与NHibernate 3.2贫嘴API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!