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