Overview
There are many code generators written in China. It can be said that many companies have their own code generators, but they are not easy to use and have poor customization. They are always inferior to CodeSmith or MyGeneration. Recently, many code generators have been released in the garden. Among them, henry's CodeFactory VS plug-in is worth recommending. I personally am also writing a code generator recently. I started to want to write a code generator that can meet the basic requirements of the company's projects. Later I felt that it was better to use it, so we have the Smart Code. When I see so many friends sending code generators, I will show them in advance. However, I am still under development. I hope this will be available at the end of this month and I will download it later.
Features
1. The overall interface style is similar to Visual Studio.
2. The template is completely based on the custom template engine. The template is written using ASP. NET markup and C # syntax.
Template writing is similar to CodeSmith. You can use Import to Import a namespace, use Assembly to add an Assembly, use Include to Include other template files, and use Property to declare attributes. You can also use <script runat = "temlate"> </script> to write code snippets.
3. You can customize attributes and configure interface controls.
Data table attributes:
Field Property:
4. multiple types of projects can be generated and custom project types are supported.
5. The generated code is a complete VS project.
6. generate code preview.
Conclusion
The Smart Code is still under development. After development, it will be available for download for free. At the same time, if you have any good suggestions and ideas, please mail them to me. Thank you very much.
Author: TerryLee
Source: http://terrylee.cnblogs.com