1: DataBase Project
2: DataFactory Project
3: Bussiness Project
4: BussinessEntry Project
5. WebApp Project
The above is the division of micro-web projects.
The project process is
1. Collect project requirements into items and store them with Execl (project owner)
2: sort out the project requirements and obtain the data dictionary (Database Administrator)
3: Obtain the front-end page framework from the project requirements (the artist is responsible for this)
5: Write System Framework, including
A: data is provided and can be used directly. It is mainly used to initialize database connections. interfaces (functions) of data access objects)
B: Data Access and write data access objects. Use the reflection mechanism to obtain multi-database support.
6: Write System code,
Solution
Solution 1: Create a control class inherited from usercontrol. When the load event arrives, initialize the database connection and create a data access object. this object is cached for use by other functions related to this page. other page controls are inherited from the control class.
Solution 2: Establish a web Component layer to separate page logic from page performance. the component layer implements the common method loadcontrol to interact with the page UI Layer, and interacts with the Bussiness project to store data. In addition, the interaction with the data access layer reflects the operation to the database.
Rating:
Solution 1: It is intuitive and simple. It is used in small projects. If the project is divided into details and members of the project have a clear understanding of the project, this solution can also be used for large projects.
Solution 2: separates page performance from page logic and can be used for large projects. by function. do your best. (one is to create a class to implement database initialization in the constructor to implement garbage collection in the analysis function, the other is to use orm, and the other is to write business entities and business logic in called here)
7: System Test. Test the business based on the conditions where the requirements are met. Use nunit to test the code.
8: the project is complete.
I am working on the project basically according to the above.
At the beginning, I wrote an article. If you have any shortcomings,
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.