NHibernate Tutorial (1)--a good opening

Source: Internet
Author: User
Tags sql server express visual studio 2010

NHibernate Tour (1): The opening is good

The content of this section

    • What is NHibernate?
    • Architecture of the NHibernate
    • NHibernate Resources
    • Welcome to join NHibernate Chinese community

Author Note: 2009-11-06 updated

NHibernate opening is beneficial

Learning nhibernate for some time, intends to do a phased summary, on the initiation of this series, this series of reference NHibernate official documents and Steve Bohlen's NHibernate Summer video tutorial. As an opening, first understand how many people are using nhibernate, first to figure out what NHibernate is? Learn some of the resources of NHibernate. We also welcome you to join NHibernate Chinese community.

This series I use NHibernate official October 31, 2009 the latest release of the Nhibernate-2.1.1.ga version. The development environment is Microsoft Visual Studio Sp1/microsoft Visual Studio 2010, SQL Server Express, and integration test plug-in testdriven.net. If you are using NHibernate for the first time, download the latest version of NHibernate (including source code, release version, reference document, API documentation, and choose to download) first. If you use the NHibernate extension project to download here, get the latest version of NHibernate contrib. Nhibernate-2.1.1.ga is the last version of the. NET2.0 platform, please click here for more information about Nhibernate-2.1.1.ga.

What is NHibernate?

NHibernate is an object/relational database mapping tool for the. NET environment. Object Relational Mapping (O/R mapping,object Relational Mapping) represents a technique used to map objects represented by object models to SQL-based relational model data structures.

NHibernate not only manages the. NET class-to-database table mappings (including. NET data types to SQL data type mappings), but also provides methods for querying data and fetching data, drastically reducing the time we use to manually work with SQL and ADO when we develop. The goal of NHibernate is to unlock 95% of the programming tasks associated with the developer's usual data persistence. And keep in mind that nhibernate as a database access layer is tightly integrated with your program.

Architecture of the NHibernate

You know what NHibernate really looks like? I'll take a little explanation of the three different charts in the official documentation.

First Picture: A very abstract overview of the NHibernate architecture

This diagram shows that NHibernate provides a persistence layer between the database and the application.

The first picture seems very simple? In fact, NHibernate is more complicated. We understand two extreme situations, lightweight and heavyweight architectures. Second Picture: The lightweight system, the application itself provides the ADO connection, and manages the transaction on its own.

Last Picture: Heavyweight system: All the underlying ADO APIs are abstracted.

NHibernate Resources

NHibernate resources are now more, but most of them are in English, here I just select a few sites.

NHibernate Special topic: http://kb.cnblogs.com/zt/NHibernate/(Chinese)

NHibernate Official homepage: http://www.nhforge.org/(US)

NHibernate Reference Document 2.1.1ga:http://nhforge.org/doc/nh/en/(English) community has a Chinese document download.

NHibernate Summer Series Video tutorial: http://www.summerofnhibernate.com/(English)

Welcome to join NHibernate Chinese community

Http://space.cnblogs.com/group/NHibernate

Why is it called NHibernate Chinese community? The reason is simple, and it manifests localization. Now about nhibernate A lot of information are English materials, Chinese information is less poor is not very complete, we strive to build up in this group to belong to everyone's nhibernate Chinese community, here to discuss nhibernate, learning nhibernate.

If you use NHibernate to learn nhibernate, join this group to discuss NHibernate, learn nhibernate, and build a nhibernate Chinese community together.

NHibernate Learning Tutorial (1)--The opening is helpful

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.