Orm, please do not make the default value in the database useless !!

Source: Internet
Author: User
Not the lazy, only the lazy.
Orm is used to get lazy. When you add a record, you must assign values to the columns that have set the default values in the database? I have seen a problem With Orm. When an insert statement is generated, values are assigned for all columns that are not pulled. As a result, the default values set for the database columns are all in the same way!
When generating an insert statement, please be smart. Only user-assigned columns should be specified. Do not traverse all columns in the table.
I don't know if this homepage is suitable or not. If it is not suitable, please remove it. I hope that the ORM designers can improve it so that the majority of ORM users can write less lines. Code.

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.