Two months, NHibernate series

Source: Internet
Author: User

Write in front

This summary was originally written yesterday, can be yesterday University monitor to inspect work, drink a little more, come back to fall asleep, also put this summary of the article dragged to today.

NHibernate series from the beginning to write, to now and then spend about two months of time, by summing up this series, indeed harvest is not small, here will this series of navigation, listed here is a small summary of the NHibernate series, but also convenient to learn NHibernate friends find.

NHibernate Documentation

Part of the document is collected from the Internet, think it is more comprehensive, on the blog to do the record, but also hope that in the use of the time, there is a place to easily find.

[Nhibernate] Architecture

[NHibernate] Isessionfactory Configuration

[NHibernate] Persistence class (persistent Classes)

[NHibernate] O/R Mapping Basics

[NHibernate] Collection Class (collections) mappings

[NHibernate] Association mappings

[NHibernate] Parent/child

[NHibernate] Cache (nhibernate.caches)

[NHibernate] NHibernate.Tool.hbm2net

[NHibernate] Nullables

Bugs encountered at work

Work in the use of NHibernate encountered bugs, here also recorded, and some in the summary of the corresponding articles have been listed. If you encounter a bug in future work, append it here.

[NHibernate] NHibernate How to map image fields in SQL Server

NHibernate Series Articles

[NHibernate] Basic configuration and testing

[NHibernate] HQL Query

[NHibernate] Conditional query criteria

[NHibernate] additions and deletions to change the operation

[NHibernate] Transactions

[NHibernate] concurrency control

dependent objects of [NHibernate] components

[NHibernate] One-to-many relationship (cascade Delete, cascade Add)

[NHibernate] One-to-many relationship (associative query)

[NHibernate] Many-to-many relationships (associative queries)

[NHibernate] Lazy loading

[NHibernate] Load now

[NHibernate] View processing

[NHibernate] N+1 Select query problem analysis

[NHibernate] Use of stored procedures (i)

[NHibernate] Use of stored procedures (ii)

[NHibernate] Use of stored procedures (iii)

[Nhibernate] Use of the Schemaexport tool (i)--Modifying a data table from a mapping file

[Nhibernate] Use of Schemaexport Tools (ii)--Create tables and their constraints, stored procedures, views

[Nhibernate] Object state

[Nhibernate] Level cache

[Nhibernate] Level two cache (i)

[Nhibernate] Level two cache (ii)

Harvest

First of all, I am grateful to the Park friend @ Li Yongjing, see his series, really good, also learned from him a lot of things.

In the process of writing a series, the deepest experience is that some things, if you feel useful to you, it is best to practice it yourself, sometimes you look at the article, very simple Ah, that is, when you really go to do, you will find that will expose a lot of problems, if there are friends in the series with me to learn, Will find that I sometimes update the article is slow, the main reason some places encountered problems, stuck in that place, have to find a way to solve the problem, so slow down their own rhythm (because the company projects need to go overseas travel not updated articles except). The process of learning is to constantly solve the problem of the process, to solve a bug, that mood is how comfortable ah, I believe most people have deep experience. Which Daniel is not a bug this is coming in the crossfire?

In the actual work, nhibernate some of the content does not really use, I think the main reason is not know how to use, and even some people, do not know that nhibernate can also be used. This series has been completed, just the company has a new project, but also the luck is too good, to apply, just confirm that sentence, good luck is left to prepare the person's (self-comfort). Then again, this project just on their own this period of time to study the results of acceptance, I do not dare to guarantee the use of the process is not a problem, but I can guarantee that in the actual application process, I at least less than others to go a lot of detours.

Accidental Harvesting

In the process of writing this series, there are unexpected gains, such as in this series learned the use of unit testing, before, in the actual work, unit testing is really less, but also afraid of trouble, but in the use of unit testing, found that I was completely conquered by it, I believe in the future work, I will often use it, No matter what other people use, but I will certainly use it.

Another harvest is, suddenly some day someone in the blog Park private messages, I asked if I have the idea of writing nhibernate aspects of books, it is really surprising, I was also on some e-commerce site search NHibernate related books, found that most of the books are English, Chinese is really very few. Also have this idea, want to try, I also know that I am not too deep in this research, I this series as a primer and the tutorial is still possible.

Post-text

This series is indeed enough as the NHibernate entry series, and of course there are a lot of shortcomings, but also hope to forgive. Learning process, but also a continuous iterative process, I believe that through this series of learning, I do not dare to ensure that you become the master of the nhibernate aspect of high master, but become the low hand is no problem.

In the comments of this series of articles have many friends asked me nhibernate and EF compared to what advantages, I can only say that there are different, I this person do not like to comment on the language of good and bad, which frame of good and bad, some things appear always have a certain reason, learning is its kind of programming ideas, ask a why, How much is a bit of harvest.

On this issue, if you break the casserole and ask the end, here's an article you might be interested in: http://www.infoq.com/cn/news/2010/01/Comparing-NHibernate-EF-4/

(If you disagree with some of the articles, please take a look at the time this article was written)

Thanks again for your attention to this series of articles, if you encounter new or difficult problems in the work, I will update to this series immediately, can let you in the use of the process of less than a detour, I am enough!

Advertising

In addition warmly celebrate under the QQ group renamed <. NET China war zone, at that time came up with such a name, feel blood boiling, full of positive energy! If you are interested in NHibernate, the group warmly welcome you to join, perhaps because of your joining, the group will be domineering leak detection!

The group will not because you are a beginner and despise you, nor because you are Daniel, every day before work incense worship you, come is a friend! Don't be near!

Two months, NHibernate series

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.