[Xdesigner. Orm open-source framework]

Source: Internet
Author: User
Preface This tutorial introduces the xdesigner. Orm application designed and developed by the author. Program Framework. The expected readers are intermediate or senior developers of C. C # beginners and intermediate developers can learn how to use xdesigner in C # application development. the ORM framework allows you to easily and quickly implement back-and-forth ing between data objects of relational databases and applications. C # senior developers can learn how to use reflection, dynamic compilation, document object models, and other advanced programming skills in C. Click Download xdesigner. Orm C #Source code . Orm Overview Orm is short for English object/Relation Mapping. translating it into Chinese means object-relational database ing. It is a technical idea to solve the mismatch between object-oriented programming and relational database technology. In the database field, mainstream databases are relational databases. The relational data structure model adopted by these databases is very mature both in Mathematics Theory and Practice. Therefore, it is widely used. In relational data structure theory, all data is organized into two-dimensional independent tables. A data table has several rows and columns. Therefore, relational databases are suitable for storing a large amount of simple data structures and are not suitable for storing complex data structures. In the industry, object-oriented programming ideas and Their Derived ideas are dominant. The object-oriented programming ideology is convenient to implement complicated data structures by means of encapsulation, inheritance, and heavy load, which adapts to the characteristics of modern information systems that contain a large number of complex data structures, it is widely used. There is a big difference between the relational data model and object-oriented programming ideas, and the exchange of data between the two is not smooth, just like Nanjing, traffic is blocked by the Yangtze River between Jiangbei and the main city. Therefore, developers urgently need to crack this data traffic blocking. In the past, programmers needed to program manually, read field values from the database, and assign values to the fields or attributes of the programming objects. This is like setting up a bridge in the Yangtze River, which is inefficient in development, difficult maintenance. Later, An ORM framework software emerged. It can map fields in the database with the fields or attributes of programming Objects Based on some configuration information, this allows you to easily read field values from the database and assign values to object attributes. This is a semi-automated mechanism that can greatly improve development efficiency and simplify maintenance. This is like setting up an Expressway Bridge on the Yangtze River. In essence, there is a huge gap between relational databases and object-oriented programming ideas, just like the Yangtze River, which is not enough even if five or six bridges are built. The complete solution is to abandon the relational database and use the object-oriented database. However, this process is just like the whole migration from Nanjing Jiangbei to the south of the Yangtze River, with a huge project and a long time. Before waiting for the rule of object-oriented databases, you still have to endure the pain of poor data traffic between relational databases and object-oriented programming ideas, and use the ORM framework to minimize this pain. From this perspective, developers hate relational databases, just as launch vehicles hate the gravity of the Earth. Currently, in software development, Hibernate uses a large number of ORM technologies and is an open source for Java. Code Object relationship ing framework, which implements lightweight object encapsulation for JDBC. Java programmers can use the object programming idea to operate databases. Some people have transformed hibernate into A. Net-based framework, forming a nhib.pdf which can be used for. NET development. Xdesigner. Orm Overview Xdesigner. ORM (xorm for short) is an open source ORM framework program based on Microsoft. NET platform. Main features include: 1. Lightweight. Xorm is a lightweight framework. All functional components are only included in two. NET Programming sets. It is very convenient to reference and deploy without using any third-party components. 2. Easy to use. There is no complex XML ing configuration file. You only need to add relevant features to the source code of the object. Adding these features does not affect the running of the program. The code of the object type is relatively free and has few restrictions. 3. Object link ing is supported. Xorm can process the master-slave relationship between object types and automatically load the sub-Object List of the primary object. 4. Supports dynamic loading. Xorm can dynamically load large field values and sub-object lists of object data. The process is transparent only when the application calls the data. 5. High performance. The xorm framework uses dynamic compilation technology to improve performance, so that it can process ORM ing relationships at a relatively high speed. Shows the architecture of the xorm framework.

The internal architecture of xorm will be described in detail later. The xorm framework is still developing rapidly, and the functions to be implemented in the future include: 1. XML ing configuration file. In the future, both XML ing configuration files and object type additional features will be supported to describe the ORM ing relationship, making the xorm framework more flexible.

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.