Introduction - If you have any usage issues, please Google them yourself
Write a code generator
In actual into work, we need to write a lot of programs, such as a table into a class object or writing a call to take n parameters of the stored procedure method and so on all need to manually to input a lot of code, and there is a lot of duplicate code. In order to avoid a lot of repetitive labor, and also for the convenience of work, I wrote a simple code generator for my own needs. Its functions are as follows:
Feature 1:
Configure the connection to the database server (including IP database server, database, login account and password) and click ok to save the configuration, saved successfully after the button is not available, a pop-up message dialog at the same time.
Function 2;
Connect to the database, and the corresponding user tables, stored procedures, views, and so on are listed.
Feature 3:
Generate code, type the name of the class to be generated in the class name text box, select the appropriate table or stored procedure or view, and click generate code button to generate the corresponding code. The generated code is saved in the root directory of the c disk, as well as in the text box. If it is a user table or view, you generate classes with attributes and constructors; If stored, a class that generates a method to call the stored procedure is generated.
Packet : 119128640build.rar filelist
codecreater\CSharpWinApp.csproj
codecreater\app.config
codecreater\App.ico
codecreater\AssemblyInfo.cs
codecreater\ConfigDB.cs
codecreater\运行文件\AppConfig.config
codecreater\运行文件\CSharpWinApp.exe
codecreater\运行文件\WinClassLib.dll
codecreater\运行文件
codecreater