ASP. NET Enterprise Development Framework isline framework series-first close contact

Source: Internet
Author: User

I have long been thinking about writing a batch of common DLL files. After all, I usually do a lot of work and I am not satisfied with the project's fitness using a third-party framework, therefore, it is better to take time to write a comfortable framework, so it took several months to complete the development of this project.ArticleThis section describes how to use this project and these library files.

The framework is called isline framework (ilfw). It is not an industry business architecture, but can be usedProgramStaff Development Project Kit, using this underlying suite development system, can simplifyCodeTo improve the code quality. Ilfw consists of seven modules: dataprovider, applogprovider, exceptionprocessprovider, httpcontentprovider, islineframework, securityprovider, and taskqueueprovider. The dependency is as follows:

 

Figure 1.1 Dependency

This series of articles focuses on three modules: log, exception, and data. Other modules such as security and network will also be introduced.

The Log Module is written in the same way as the log4net framework. It not only Records log information to different media, but also provides individual log attributes for each program element, these attributes only need to be modified in the configuration file, which is different from log4net.

The exception module can define a unified exception display platform for the whole world. This module inherits from the Log Module and expands how to handle exceptions, you only need to modify the configuration file to change the exception display mode.

The data module is relatively old, but I think it is very practical. This module is perfect for supporting all operations of oralce and SQL Server, transaction processing, and multi-database connections. It also provides perfect read/write support for XML, text files, and. config files. It divides ADO objects into connection-oriented and non-connection-oriented, and implements them separately. It optimizes the resource allocation and release in these two methods, and strives to complete operations on the data source by writing only one sentence of code, you can also use reflection to construct your own dataprovicdr, but you must implement the same interface.

The httpcontent module encapsulates frequently-used persistent objects, such as sessions, cookies, and caches, and implements the same interface. At the same time, the attributes of these objects are defined in configuration mode, the attribute definition does not need to appear in the program, which provides a unique attribute entry for the whole site and improves controllability.

The security module defines some common EncryptionAlgorithmThe connection string encryption in dataprovider is implemented by this module.

I believe you have gained a general impression on this project. The following article will introduce the namespace structure, configuration list, and calling method of this project in detail. Thank you for your guidance.

I suddenly found that writing code is the same as playing photography. I often hear how good the video crew likes the white red circles. Actually, how many people can make the best of them? After all, we only belong to one of the most people. ilfw is a general class library for solving daily work. Although it is not a good choice, I know it must be suitable for most people.

(To be continued)

I amAicken)You are welcome to follow my next 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.