These two days, I have been familiar with the data structure and business logic of the company's website front-end and back-end. I have seen a folder named "base" in many projects, which contains a series of folders with "****. generated. CS files (such as bulletin. generated. CS ). Anyone who knows programming and English should think of the tools that are automatically generated? I used to know that C # has tool software that automatically generates code based on the template, but I don't know what the name is. Today, I 'd like to know that although it has nothing to do with my familiarity with the company's website logic code. I asked the header and told me a tool software called "codesmith" or "dynamic soft. Net code generator codematic". I want to use it in later programming to improve efficiency.
Baidu search:
Codesmith is a template-based code generation tool that uses syntax similar to ASP. NET to generate any type of code or text. Unlike many other code generation tools, codesmith does not require you to subscribe to specific application designs or architectures. Codesmith can be used to generate anything including a simple set of strong types and a complete application.
When you generate an application, you often need to repeat some specific tasks, such as writing data access code or generating a custom set. Codesmith is especially useful in these cases because you can write templates to automatically complete these tasks, which not only improves your work efficiency, but also automatically complete the most boring tasks. Codesmith comes with many templates, including templates corresponding to all. Net Collection types and templates used to generate stored procedures. But the real power of this tool is the ability to create custom templates.
Codesmith is a syntax similar to Asp.net template-based code generator. The program can customize templates to reduce the labor cost of repeated encoding and improve efficiency.
After codesmith 2.6 is installed, two runable programs codesmith studio.exe and codesmith assumer.exe are available.
Codesmith studio.exe is used to create a custom template.
Codesmith assumer.exe is used to import the template and generate code
Open codesmith studio.exe and create a C # template. The following identifiers are found to be similar to Asp.net.
<%>
<% = %>
<% @ %>
<SCRIPT runat = "template"> </SCRIPT>
Site: http://www.codesmithtools.com/
Introduction to huajun:
Dynamic software. net code generator codematic is an automatic code generator designed for C # Database programmers. The code generated by codematic is based on the object-oriented idea and three-tier architecture design, combining the classic ideas and design patterns in petshop, we integrate some ideas such as factory patterns and reflection mechanisms. The model + Dal + BLL + web design is used to automatically generate the base class code of the table in the corresponding database, it includes basic code snippets such as generating attributes, adding, modifying, deleting, querying, existence, and model class construction. It supports code generation in three different architectures, this allows programmers to save a lot of mechanical input time and repetitive work, and focus on the development of core business logic.
> Codematic also provides convenient multi-type database management, query analyzer, SQL script generation, stored procedure generation, database document generation, and web project release, multiple features frequently used in development work, such as batch Automatic Code output, allow you to easily develop projects.