Summary of characteristics of WinForm hybrid development Framework

Source: Internet
Author: User

WinForm Hybrid development Framework is a kind of application framework that supports distributed deployment, supports direct database connection, accesses remote WCF service, accesses remote Web API service, and uses different data interfaces according to different requirements. Hybrid development Framework It is itself a complete business system outside its periphery of all the accessible modules (such as universal permissions, Universal dictionary, Universal attachment Management, General Staff management, Address Book Management ...). Are implemented with this hybrid framework, making it easy to use.

1. Multiple data access Methods

The hybrid development Framework, which blends traditional WinForm development Framework, WCF development framework, and Web API interface framework, allows for free switching between direct access to a database, access to data using WCF services, and access to data using Web API services. Unified the System interface layer to the business service invocation mode, all module modules are implemented in three ways of call, is a very good elastic framework application, can be used for stand-alone software or LAN-based application software, but also for the distributed technology of the Internet environment applications, is a mature stable, secure and efficient technical framework.

Because of the hybrid framework, it can be used for both traditional WinForm system development, WCF Distributed system development, and distributed system development for lightweight and efficient web APIs, so environment adaptability is strong, and because of these features, the modules have higher reusability, especially for the universal modules. But also has the irreplaceable superiority.

2. stand-alone configuration with fewer code modifications

All common modules of a hybrid framework, if accessed through WCF or Web API services, the client module needs to be configured with the corresponding access address.

WCF Service connections, which configure WCF connections through a standalone configuration file, reducing the complexity of the master configuration file;

The Web API's connection address for each service can also be specified through a configuration file, with the HTTP or HTTPS protocol for data transfer as needed.

These access configuration, are placed in separate files, so that can be easily centralized modification, but also convenient through the program Interface configuration adjustment. As in the hybrid framework, a management interface is provided to manage the switching and configuration parameters of these interfaces.

The relevant interface address parameters, can be unified in the management interface for maintenance changes.

3, provide a variety of main interface layout way

The hybrid framework provides a variety of module invocation methods, which can be dynamically constructed by a pre-configured menu button in a plug-in manner, and trigger a call to the corresponding plug-in module for presentation, or a Function button layout by adding a regular menu button.

The mixed frame Body interface also offers a variety of interface layouts that can be displayed in the standard top bar Menu mode, as shown below.

You can also put a function bar similar to the OutlookBar on the left, in place the corresponding menu function tree, so as to show more functional modules, suitable for use in more complex system functions.

4. Integration of code generation tools

The whole framework of application development, code generation tool Database2sharp is the soul, it revolves around different frameworks, according to the design of database information, generate the main framework information, the different types of class files in different projects, to achieve rapid framework incremental development In addition, the entire framework of the WinForm interface and Web interface, can be quickly generated, slightly adjusted to achieve a professional interface design and development work, and can be quickly compiled to run, so as to achieve rapid, efficient, unified framework application development.

1) generation of the main frame code

Enterpriselibrary code generation is a monolithic project code generation operation, it can be based on the design of database information and template files, to generate a very high integrity of the project. Typically combined with our WinForm Development Framework ,WCF development Framework, Hybrid development framework, or Web development framework, incremental project development is more efficient and can take advantage of the integration of more developed, off-the-shelf component modules, Perfect integration, as well as modular packaging, can bring you endless development fun at the same time, so that the project from the code style, user interface, design concepts, can maintain a good unified, fast and elegant to complete the project encountered.

The Code generation tool, which generates a monolithic hybrid framework project as shown below, is just not part of the interface, this part in the actual development process, combined with my hybrid framework case for integration can also be bounded using database2sharp for the development of WinForm interface, So the integrity is very convenient to operate:

2) generation of interface code

interface development, whether for web development, or WinForm development, all need to spend a certain amount of time, especially for a database field more interface, generally need to put more controls on the editing interface to do data display, each encounter this, have a headache, repeated mechanical operation let a person very tired, also very annoying, But it has to be done.

Because the database field and the interface are related to the layout, it is possible to construct a basic interface through the database metadata of the code generation tool Database2sharp, including table name, Memo information, field list, and each field name, remark, type, etc. The repetition of the mechanical parts to the quick completion, which is what I call the interface rapid generation. Of course, for the delicate interface, the mechanical generation certainly can not meet our needs, so the real interface needs to be modified on this basis, but due to the duplication of labor, has been to the tool has been disposed of, therefore, the interface development efficiency will be greatly improved.

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

Summary of characteristics of WinForm hybrid development Framework

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.