Considerations for using the document-view mode in the winform Program

Source: Internet
Author: User

The document-view mode is used in MIS Design. I really don't know much about it.ProgramThe business logic and performance should be separated, but when looking at the presentation layer mode, we found that it is really not a good way to set MVC, but it is consistent with the document-view in the original MFC. After reading Microsoft's msdn model seriesArticleIt is known that document-view is a variant of MVC.
When the system was small, it used to write business logic directly in form. Another reason for this was that the demand was too large, too many changes were made, and the requirement was fast. If you write too much, you will feel that the business logic is scattered in various forms. Once the business logic cannot be reused or duplicated in the system.CodeMany, it is difficult to modify a single error. Second, the business logic is too scattered, and it is difficult to organize the entire business. If the next similar project cannot benefit from the original system. In the beginning, the data access layer was isolated, but the universal data access function, that is, obtaining dataset from SQL or updating dataset Based on select, was provided independently, reading/writing blob and retrieving sequences are not data gataway.
After document-view is used, the main purpose is to clarify the business logic, and the Business modification and interface modification are independent of each other. It is also easy to switch to a three-tier structure, or B/S.

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.