I think ORM...

Source: Internet
Author: User
I think what is Orm:
Answers Questions for beginners, Orm, object-Relation Mapping, and object link ing. It is mainly used to implement the correspondence between business logic and data tables in relational databases. Let you get rid of the details of accessing the database.

I think ORM is good:
I think the best thing about ORM is that you don't need to write SQL, connection, command, or dataadapter. Of course, it is convenient to change the database.

I think ORM is not good:
1,The most important thing is: put the cart before the horse if it is not good. With Orm, addCodeGeneration, I feel that as long as there is a database, the entire project will be almost done. It is easy to let people have a feeling of first making a database, then generating code, then modifying it, and adding a GUI. So, right? I don't need to talk about it?
2. database-driven development. Is it a word I made? Is anyone using a database-driven development?
3. Easy to use. xml and businessobject must be configured... code Generation is better, but I always feel uneasy about what is generated. Even if I write it myself (I also wrote it), there may be many problems (is my level not high enough ?). In addition, it is particularly difficult to switch from the carefully crafted code in the business logic to the wholesale code generation code.
4. Performance: Are all reflected? Expensive stuff...
5. The support for complex queries is poor: Multi-table joint queries and so on. Some of them can also be implemented, but it is more difficult to write SQL.

What do I think ORM is suitable:
1. Create a micro-system, especially with low concurrency or no concurrency.
2. Build a prototype system.

Thank you for your criticism. Your criticism is my best teaching material. :)

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.