NHibernate Reference Documentation § Preface - NHibernate 参考文档 § 前言

来源:互联网 发布:手机如何删除淘宝评价 编辑:程序博客网 时间:2024/05/21 15:46

Preface 前言

Working with object-oriented software and a relational database can be cumbersome and time consuming in today's enterprise environments. NHibernate is an object/relational mapping tool for .NET environments. The term object/relational mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL-based schema.

在今天的企业开发环境里,处理面向对象软件与关系数据库可能会是件即麻烦又耗时的事情。NHibernate 是一个 .NET 环境下的 对象/关系 映射工具。对象/关系 映射(ORM)是关于基于SQL的数据库模的、从对象模型到关系数据模型的、数据表示的映射技术。

 

NHibernate not only takes care of the mapping from .NET classes to database tables (and from .NET data types to SQL data types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and ADO.NET.

NHibernate 不但关注从 .NET 类到数据库表的映射(以及 .NET 数据类型到SQL数据类型),而且提供数据查询与检索机制此外还能够显著减少在操作数据于 SQL 与 ADO.NET 上所花费的开发时间。

 

NHibernate's goal is to relieve the developer from 95 percent of common data persistence related programming tasks. NHibernate may not be the best solution for data-centric applications that only use stored-procedures to implement the business logic in the database, it is most useful with object-oriented domain models and business logic in the .NET-based middle-tier. However, NHibernate can certainly help you to remove or encapsulate vendor-specific SQL code and will help with the common task of result set translation from a tabular representation to a graph of objects.

NHibernate 的目的是减轻开发者95%的一般的数据持久化相关的编程任务。对于以数据为中心的应用来讲,旨在仅在数据库中使用存储过程来实现业务逻辑,NHibernate 可能不是最好的解决方案,它最广泛用于面向对象的领域模型和基于 .NET 的业务逻辑中间层。而且NHibernate 的确能帮你免除或封装厂商特性的 SQL 代码,还可以帮你完成将结果集从表格变换成图形对象的这样的常见任务。

 

If you are new to NHibernate and Object/Relational Mapping or even .NET Framework, please follow these steps:

如果你初次接触 NHibernate 和 对象/关系 映射,甚至是 .NET 框架,请参看如下步骤:

  1. Read Chapter 1, Quickstart with IIS and Microsoft SQL Server for a 30 minute tutorial, using Internet Information Services (IIS) web server.
    阅读第一章,快速开始 IIS 与 Microsoft SQL Server, 30 分钟的指南,使用 Internet Information Services (IIS) web 服务。

  2. Read Chapter 2, Architecture to understand the environments where NHibernate can be used.
    阅读第二章,架构,了解何种环境可以使用 NHibernate 。

  3. Use this reference documentation as your primary source of information. Consider reading Hibernate in Action (http://www.manning.com/bauer/) or the work-in-progress NHibernate in Action (http://www.manning.com/kuate/) if you need more help with application design or if you prefer a step-by-step tutorial. Also visit http://nhibernate.sourceforge.net/NHibernateEg/ for NHibernate tutorial with examples.
    使用这一参考文档作为你的最基本的信息源。考虑阅读一下 Hibernate in Action (http://www.manning.com/bauer/) 或是NHibernate in Action 的工作过程 (http://www.manning.com/kuate/) 如果你需要更多有关应用程序设计帮助或是你比较喜欢循序渐进的教程。有关NHibernate 指南及示例也可以访问 http://nhibernate.sourceforge.net/NHibernateEg/ 。

  4. FAQs are answered on the NHibernate website.
    常见问题解答于 NHibernate website 。

  5. Third party demos, examples and tutorials are linked on the NHibernate Resources page.
    第三方演示,示例,指南链接于 NHibernate Resources page 。

  6. The Community Area on the NHibernate website is a good source for design patterns and various integration solutions (ASP.NET, Windows Forms).
    NHibernate 网站的社区的提供了关于设计模式和各式各样的集成解决方案(ASP.NET, Windows Forms)的优秀的资源。

If you have questions, use the NHibernate user forum. We also provide a JIRA issue trackings system for bug reports and feature requests. If you are interested in the development of NHibernate, join the developer mailing list. If you are interested in translating this documentation into your language, contact us on the developer mailing list.
如果你有疑问,使用 NHibernate 用户论坛 。对于 bug 报告与专题我们也提供 JIRA 问题跟踪系统 。如果你有兴趣开发 NHibernate, 参入开发者邮件表。如果你有兴趣翻译本文成你的母语,联系我们于 开发者邮件表 。

原创粉丝点击