Learning and using nhibernate has been a long time, has been trying to write something and everyone to learn to use NHibernate. There are also many articles in the blog park that are written about NHibernate's entry. Among them: Li Yongjing Blog http://www.cnblogs.com/lyj/tag/NHibernate/content is the most abundant. And in Mfullyaware's blog to learn a lot of things, thank you here!
This article reading object is: NHibernate beginner! If you are a NHibernate researcher or have been very skilled in the use of NHibernate please advise, the shortcomings of this article.
Study with questions! After studying these, I hope you can answer the following questions:
1. What is NHibernate?
2. What can nhibernate do? What do you bring to us?
3, how to build nhibernate?
4, how to use NHibernate?
Well, we'll start our nhibernate journey with these few questions.
First question:
To understand what NHibernate is, you must first understand what an ORM is.
Let's look at a classic picture:
ORM: 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. In layman's words, we manipulate the entity classes and then let the ORM framework map automatically to the database.
And NHibernate is: A framework for implementing ORM technology in the. NET Environment!
Second question:
What can nhibernate do?
Look at the following code:
NHibernate Introduction and Demo