Summary of features of Winform hybrid development framework, winform framework

Source: Internet
Author: User

Summary of features of Winform hybrid development framework, winform framework

The Winform hybrid development framework is an application model that supports distributed deployment. It supports direct database connection, remote WCF Service Access, remote Web API service access, and other services, using different data interfaces based on different needs is a widely adaptive application framework. The hybrid development framework is a complete business system, all auxiliary modules on its periphery (such as general permission, general dictionary, general attachment management, general personnel management, and address book management ......) all of them implement this hybrid framework, so it is very convenient to use.

1. Multiple Data Access methods

The hybrid development framework integrates the features of the traditional Winform development framework, the WCF development framework, and the Web API interface framework, data can be freely switched between direct access to the database, use the WCF Service to obtain data, and use the Web API service to obtain data. The system interface layer unifies the call mode for business services, all component modules can be called in three ways. It is a very flexible framework application that can be used for stand-alone software or LAN-based application software, it can also be used in Internet environment applications of distributed technology. It is a mature, stable, secure, and efficient technical framework.

The hybrid framework can be used for both traditional Winform System Development and WCF distributed system development, as well as lightweight and efficient Web API distributed system development. Therefore, it is highly adaptable to the environment; in addition, the modules have these features and are more reusable. Especially for general modules, they have irreplaceable advantages.

 

2, Independent configuration with fewer code modifications

For all common modules of the hybrid framework, if they are accessed through the WCF or Web API service, the corresponding access address must be configured for the client module.

Configure the WCF connection through an independent configuration file to reduce the complexity of the master configuration file;

The connection address of each Web API service can also be specified through the configuration file, and data transmission is performed through HTTP or HTTPS as needed.

These access configurations are stored independently in different files, which facilitates centralized modification and Configuration Adjustment through the program interface. For example, in the hybrid framework, a management interface is provided to manage the switching and configuration parameters of these interfaces.

The interface address parameters can be uniformly maintained and modified on the management interface.

 

3. Multiple main interface layout Modes

The Hybrid Framework provides multiple module calling methods. You can dynamically build corresponding menu buttons in the plug-in mode through pre-configured menus and trigger calls to corresponding plug-in modules for display; you can also set the function button layout by adding a menu button.

The main interface of the hybrid framework also provides multiple interface la S, which can be displayed in the standard top-bar menu mode, as shown below.

You can also place a function bar similar to OutLookBar on the left and the corresponding menu function tree to display more function modules, which is suitable for complex system functions.

 

4. Integration of code generation tools

The Code Generation Tool Database2Sharp is the soul of the application development of the entire framework. It generates information about the main framework based on the designed database information, place different types of class files in different projects to achieve rapid incremental development of the framework. In addition, the Winform interface and Web interface of the entire framework can be quickly generated, with a slight adjustment, you can design and develop professional interfaces and quickly compile and run them to achieve fast, efficient, and unified framework application development.

1) generate the main framework code

When the EnterpriseLibrary code is generated, an overall project code is generated. It can generate a project with a very high integrity according to the database information and template file. GenerallyWinform development framework,WCF development framework and hybrid development frameworkOr the Web development framework for incremental project development, which is more efficient. It can also use the integration, perfect integration, and modular encapsulation of more developed and ready-made component modules, it brings you endless development fun, while maintaining good consistency between the Code style, user interface, and design concepts, allowing you to quickly and elegantly complete the projects you encounter.

The Code Generation Tool generates a comprehensive hybrid framework project as follows, but there is no interface part. This part can be integrated with my hybrid framework case in the actual development process, in addition, you can also use Database2Sharp to develop the Winform interface, so that the integrity is very convenient:

 

2) generate interface code

Interface development requires a certain amount of time for both Web development and Winform development, especially for interfaces with a large number of database fields, generally, more controls need to be placed on the editing interface for data display. Every time this happens, it is a headache. Repeated mechanical operations make people very tired and annoying, however, this is required.

Because database fields are related to the page layout, you can use the database metadata of the Code Generation Tool Database2Sharp, including the table name, remarks, and field list, and the name, remarks, type, and other information of each field to construct a basic interface and quickly complete the repetitive mechanical part. This is what I call quick interface generation. Of course, the mechanical generation of exquisite interfaces certainly cannot meet our needs. Therefore, the real interface needs to be modified and improved on this basis. However, due to repetitive work, the tool has been processed, so the interface development efficiency will be greatly improved.

The Winform interface can generate a standard list display interface or a master-slave table interface, which basically adapts to most situations.

 

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.