In Nhibernate, object classes are not used for persistence.

Source: Internet
Author: User

Starting from 2.1, nhib.pdf supports the new entitymode. Map feature to help you design models persistently without writing any domain entities.

Because a colleague is studying this, I am also concerned about it. Li yongjing's blog details this feature

Http://www.cnblogs.com/lyj/archive/2009/08/05/nhibernate-new-features-entitymode-map.html

In nh2.1, there are three entitymodes:
Poco
Dynamic-map (also called dictionary <propertyname, propertyvalue>)
XML (not implemented)

I wanted to write a comparison between the efficiency of Poco and map that we usually use. Suddenly, I was not interested in map.

My colleague studied this and hoped that both the object class and xml configuration could be used for database operations without prior definition. But I suddenly thought that these configuration files were missing, the database relationship is not reflected in the Code. Should I bring programmers back to the era of database structure?

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.