Enterprise-level agile software development platform based on DOTNET component technology-agileeas. NET platform development guide-Business implementation

Source: Internet
Author: User
Tags dotnet
Business hierarchy

Based on industry experience, layering is a simple method to solve complex problems. Through layering, you can break down a complex problem into small problems of different levels of applications, it is less difficult to solve small problems at all layers than to solve the general problem. The most successful layer is the computer network communication protocol, ISO/OSI, TCP/IP.

In information system development, an application is logically divided into three layers: data layer, business layer, and interface layer. The business logic is shown in:


 

This structure is generally called a three-layer structure, or evolved into a n-step structure (which breaks down a layer), and a two-layer structure (which combines the interface and business into a layer, or merge the business layer and data access layer) or a layer of results (all are on the UI Layer ).

The layered architecture design or practice lies in the application development requirements and the technical constraints of developers. Only the appropriate layered model is selected and there is no optimal layered model.

Layered agileeas. NET platform

Agileeas.. NET platform application development provides 2-3/n hierarchical implementation support. developers can select different layered models based on the scale of the application system. Let's start with layer-2 structure development:


 

This two-layer structureProgramThe deployment has two sets that support one application. One is the UI and the other is the data access layer. The UI and the data access layer work together to complete the functions of the business layer. The UI focuses on business input verification, the Dal layer focuses on business data processing.

On the agileeas. NET platform, the data access layer is an interface-Driven Data access layer, that is, the data access layer is divided into the data access interface layer and access implementation layer, as shown in:


 

In the architecture shown in, the data access layer is decomposed into the data access layer interface components and different database access Layers Based on the Interface-driven idea. The UI only depends on the data access layer interface, it is not related to the specific database implementation, that is, the business only depends on the declaration, but does not rely on the implementation, which has a benefit, after the implementation of the data access layer is modified, the interface layer (UI) is not affected ).

Based on the structure, an independent business logic layer is added to the UI Layer and the Dal layer to obtain the structure as defined below:


 

In this structure, the system interface layer accesses the business logic layer, and the business logic layer depends on the Dal interface layer, and determines whether to load the Dal implementation during the runtime. The structure is agileeas. the application layering mode recommended by the. NET platform. The data object generator of the platform has generated an interface-Driven Data access layer.CodeIn Interface Layer Development, The agileeas. NET platform provides the practice of binding a system ui to the orm object data.

The information system developed on the agileeas. NET platform can run in a Distributed Environment Based on. NET WebServices and. Net remoting technology. In this way, we will draw out another layered structure:


 

This new layered result adds the business proxy layer and communication/transmission service (layer). Initially, this structure was applied to distributed applications, data is transmitted as An ORM object between the system interface layer, business proxy layer, and business logic layer.

For the communication/transmission services involved, or the communication/transmission service layer, in a distributed application, she is a fact-existent channel, and the client is deployed with the interface layer and business proxy layer, the application server has just deployed the business logic layer and data access layer. However, in non-distributed applications, for example, if the client Lenovo all components, the communication/transmission service, to unify this layered architecture. NET platform provides a virtual communication/transmission service for services that access local service components.

With this and layered architecture, agileeas. applications developed on the net platform can switch between local programs and distributed applications without modifying the task program.

About the business logic layer

Agileeas. the. NET platform uses the ORM technology to construct the data access layer code, because the ORM has read, added, deleted, and modified the database. Theoretically, the data access layer has added, deleted, and modified data. The business layer only needs to call these operations, or the interface layer can directly call these basic operations at the data layer, this forms a weakened business logic layer.

If you strictly investigate the business logic layer, you can divide the independent business logic and the Business Layer related to data processing, in agileeas. the code generated in the Data Object designer of the net platform is implemented based on the Division class, that is, half of the code files in the code generated by the generator are prepared by the programmer to write complex data processing Code related to the business logic, the business logic layer accepts requests from the interface layer to call the data processing methods at the data access layer and completes such as transaction processing.

The business logic proxy layer component generates the corresponding business proxy code based on the business layer components to complete the function of transferring requests from the system interface layer to the real business logic layer.

UI development

Interface Layer Development is a very important part in application development. All applications provided by the software must be displayed to the end users of the system through the interface. Friendly Human-Computer Interaction can make the operation appealing; how to design a friendly and beautiful human-computer interaction interface is a reflection of the skills of developers and artists.

In agileeas. in the. NET platform, the system interface layer is also a part of the plug-ins in application development. Some UIS in the system interface layer need to implement agileeas.. NET Platform Plug-in contract, directly or indirectly implement the imodule interface or use the module attribute to mark the module.

The agileeas. NET platform provides a basic UI template and an auxiliary development component for input verification and UI data interaction management, so as to conveniently and quickly complete UI coding.

 

Link

Agileeas. NET platform development guide-series Directories

Introduction to agileeas. NET application development platform-Index

Official website of agileeas. net

Agile Software Engineering Lab

 

QQ group: 116773358, group 1 full

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.