ORM (Object relational Mapping) framework

Source: Internet
Author: User

ORM (Object relational Mapping) framework

The ORM (Object Relational Mapping) framework uses metadata to describe object-relational mapping details, which are typically XML-formatted and stored in a dedicated object-mapping file.

As long as the mapping of persisted classes to tables is provided, the ORM Framework can, at run time, reference the information of the mapping file and persist the object to the database. The current ORM Framework has three main types: Hibernate (Nhibernate), Ibatis,eclipselink.

Framework Overall Introduction

In fact, this ORM framework still has this big problem. But this is the second phase of my goal, and it is now complete.

The existing ORM framework is still relatively many. I am not writing this ORM to say that to overthrow a theory or to compete with linq,nhibernate, a person's power is almost impossible. Writing this framework is just a step closer to understanding the program architecture.

The design idea is actually simple, just like the rest of the ORM framework. The relationship between the entity object and the database is maintained through a relationship, and then the operation of the database is implemented through the operation of the entity object.

ORM is the use of metadata that describes the mapping between objects and databases, which naturally reminds us of XML and attributes (Attribute) When we think of a description. In the current ORM framework, NHibernate is typically used as a mapping framework for describing entity objects using XML files, while The famous LINQ is described using Attributes (Attribute).

ORM (Object relational Mapping) framework

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.