I read many people's
Article , The ado.net and nhib.pdf are treated as similar things, and the two are frequently compared. I don't agree with those friends!
I think ado.net and nhib.pdf are totally different levels of things. The relationship between them is somewhat similar: it encapsulates the relationship between the drag-and-drop object of Win32 API calls and the Win32 API itself.
I have not studied nhib.pdf myself. I just heard from my colleagues that I did not dare to draw conclusions about the performance and framework of Nhibernate. However, this does not affect my understanding of nhib.pdf as a whole. I think nhibing is one of the frameworks that implement o/R Mapping. As long as it is not out of this category, I think the following understanding should be correct.
The following describes the relationship between ado.net and nhib.pdf in my mind. You are welcome to point out the shortcomings and add my nhib.pdf knowledge. Thank you!
Ado.net is a Managed Data Access Service on the. NET platform.ProgramIs a basic component for. net programs to access the database. Most programs need to access the database using this component. Of course, you can also call the com Group to use the previous version of ADO.
While nhib is a data ing tool that maps data in database tables into various business profiles. In fact, we can map the fields in the database table into a class without using nhib.pdf. Only nhib.pdf can be automated, with a good framework and a good image cache mechanism.
Relationship between ado.net and nhib.pdf:
Ado.net provides underlying functions for data access, while nhib.pdf is a framework on ado.net that encapsulates data into images. In other words, nhib.pdf uses ado.net to access the database. Therefore, the relationship between nhib.pdf and ado.net can be considered as the relationship between the call and the called.
Therefore, "I used nhib.pdf instead of ado.net" is not accurate, and it is inappropriate to compare ado.net with nhib.pdf. The two are not the same as the original one. It is just like comparing Microsoft's dataaccess Application Block with ado.net, and it is concluded that dataaccess Application Block is better than ado.net. In fact, it is only a further encapsulation of ado.net. Adding a layer on ado.net, using nhib.pdf is actually using ado.net between nhib.pdf. All the things that deal with ado.net are all done by nhib.pdf.
So if we define nhib.pdf in the following way, I agree:
Nhib.pdf further encapsulates ado.net data access in a peer-oriented manner. By hiding the call details of ado.net, nhib.pdf hides the operations of SQL statements and database tables. It automatically maps database tables and Business Objects, and provides data object caching and various event mechanisms. This effectively solves the problems when we manually map databases to business images.CodeA large number of problems. The cache function relieves the performance problems caused by database ing. This allows us to achieve better image-oriented database program development at a relatively small cost. (Reposted on another master in the blog Park)