To commemorate successful implementation of "database replacement without code"-conversion from access to SQLite

Source: Internet
Author: User

Purpose:

Now, let's take a look and celebrate,

Thank you for your comments.

Background:

Database components have been completed for a long time,

I haven't been doing a good test,

Requirements:

The new system has a large data volume (which may far exceed expectations ),

I planned to update it to MSSQL before, but it was really troublesome. In combination, choose SQLite.

Process:

A: Out-of-system:

1. Data Structure generation is inevitable ,(CodeGenerator completed)

2. It is inevitable to import data. (because it is already an entity class, several lines of code can complete the entire process. Besides the ID of some tables, it is basically a perfect solution)

B: inside the system:

1. web. config is still inevitable to be modified, and there is no real implementation of zero code (CHANGE Part: system. data. oledb-> system. data. SQLite, six bytes ^_^)

C: test:

1. There is no problem with adding or deleting a part.

2. The management part is much faster, and the list, conditions, pages, and no inconsistency appear.

D: conclusion:

Ignore system table generation and data import. The total number of code modifications is six bytes.

Basically, it is "zero code.

Related Article

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.