Self-written. Net (C #) Code Automatic Generator

Source: Internet
Author: User
Tags manual writing

This was actually written a year and a half ago. At that time, I saw that many codes were regular and repetitive. Therefore, we want to write a tool to save time and improve efficiency. More importantly, let yourself reduce labor :). However, I have been busy for a long time, and I have not improved it any more. I just improved it a little recently.

The main function of the software is automatic code generation, which is originally written for code generation. However, in daily development work, some problems and ideas are encountered, and some development auxiliary functions are added. Convenient for daily development.

Download the latest version

Basic Function Description:

1. Code Generator.
You can generate code for a layer-3 architecture. If the architecture is similar to the petshop architecture, the code generation efficiency is very high.
It can generate multiple layers of code: entity model, Dal (data access layer), idal (interface layer), dalfactory (class factory), BLL (business logic layer), and web layer, it can save a lot of time to do the code of the business logic. Let's do the repetitive code and generate all the basic code of the architecture in one minute. I feel that it is easy to develop projects.

2. Database Manager.
Similar to the management interface of sqlserver2000, it facilitates back-and-forth switching between common code editing and database viewing.

3. query Analyzer.
The sqlserver2000 query analyzer function is implemented to facilitate data query during code writing.

4. database structure document generation.
You can generate the corresponding table structure documents based on the selected database and table (multiple options are available), eliminating the trouble of manual writing documents and operations.

5. Web project file Publishing.
Sometimes we need to export the project file according to our own requirements,. net built-in copy project function, for some images or JS files and other files, cannot be automatically exported, unless you add these to the project. Therefore, with this function, it is very convenient for project release and allows you to define which releases are not released.

6. Automatic Export of code generation.
The code generator can select a table to generate code and paste it into the project. However, if there are many tables, it is too troublesome to perform this operation back and forth. Therefore, this function can automatically create folders based on the three-tier architecture and generate all the selected tables. the CS code file only needs to be added to the project.

There are still many imperfections that can only be improved after time. At the same time, if anyone has good suggestions or ideas, contact me.

The next step is to implement the automatic template customization function to implement code in various architectures more flexibly.

 

1. Database Manager functions:

2. SQL query Analyzer:

3. Code Generator -- generate object class model

4. Code Generator -- generate data access layer code. (You can see that each layer of code can be generated by switching tabpage)

 

 

5. Generate database structure documents.

6. Publish the web project file.

7. Automatic Export of code generation.

Sample exported code:

 

 

 

Download the latest version

 

 

It facilitates work and entertainment, changes the world with wisdom, and changes life with creation. In fact, work is also very happy! -Li Tianping

 

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.