Understanding of ORM

Source: Internet
Author: User

Orm has three main files:

1. Database Configuration File

2. ing File

3. Business Object files

 

Features of ORM:

1. no or few pre-compiled data accessCode

2. The data access code is dynamically generated through reflection during running (the ing between the business object class and the database object is obtained by reflecting the Business Object Class and parsing the ing file)

 

Disadvantages of ORM:

1. Low performance (because the use of reflection to dynamically generate data access code at runtime must be less efficient than the use of pre-compiled data access code)

2. Have a sufficient understanding of complex queries and do not have the necessary power

 

LINQ and ORM:

Language Integrated Query is a new language feature provided by. NET Framework 3.0. It is used for set-based operations. It has many implementations, also known as LINQ provider, which are the executors of LINQ queries, including LINQ to SQL, LINQ to object, LINQ to XML, LINQ to nhibties, and LINQ to entities.

Among them, LINQ to SQL is. net Framework 3.5 provides a lightweight ORM solution. Only it is related to Orm, and there is no relationship between other and Orm. Both of them are completely two technical concepts.

Orm composition:

1. A group of APIs that perform crud operations on persistent classes

2. Languages or APIs used to specify queries related to classes and class attributes

3. Tools for ing with metadata

4. Allows ORM implementation and dirty data check with transaction objects, lazy Association reading and other optimization technologies

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.