Dynamic SoftCodeThe generator has integrated the template code generation function, but many old users do not know it or new users do not know it too well. Let's take a look at this function briefly, custom Users and advanced users can generate their own code more flexibly and conveniently.
1. Main Interface:
2.On the left-side [database view], right-click the table and choose [template code generation]
3. Then, the Code Generator interface for a single table is displayed. Let's set the information we need to change.
Note: The Code also has some generation rules in the menu [tools]- [Option]- Code generation settings.
Click Generate code or generate code in the toolbar.:
The generated code can be copied directly to the project file or savedCSFile. You can switch the design view and code back and forth through the tab button under the form.
4. You can set the template directory.
5. Generate template code in batches
1.Select a database or table, right-click the menu, and choose generate template code in batches]
2.The displayed window is similar to the new project, but an option of the selected architecture is added:
6. You can also select a stored procedure to generate the Dal call code for the stored procedure:
7. template example
The template syntax is very similar to the aspx syntax. It is basically a C # syntax structure and can be written as long as C # is used.
For more detailed template syntax tutorials, you can download the tutorial documentation:Http://files.cnblogs.com/ltp/Template.pdf