通用代码模板允许对代码进行重用。
我希望您乐于学习在数据库中存储代码模板。
I hope you enjoyed learning about code templates stored in a database.
创建通用代码模板。
我将介绍其中的几个代码模板,说明其工作原理。
I'll show you a few of these code templates to illustrate how they work.
代码模板参数使用的方式与模式模板参数很相似。
Code template parameters are used in a manner similar to the pattern template parameters.
参考 参考资料部分的文档以了解高级代码模板的内容。
Refer to the documentation in the Resources section for advanced code template scenarios.
按照与代码相同的方式构造模型可以极大地简化代码模板。
Structuring the model the same way as the code can greatly simplify the code templates.
支持代码模板和代码自动完成:支持自动文件保存。
Support code templates and automatic code completion: support for automatic document preservation.
图5:架逻辑构师(Logic Architect)的代码模板。
您可以轻松地将清单3和清单5组合起来,获得一个通用代码模板处理器。
You can easily combine Listings 3 and 5 to make a generic code template handler.
创建基于XDE的代码模板,该模板提供由模式定义的类的实现。
Create XDE-based code templates that provide the implementations for the classes defined by the patterns.
被称为“代码模板”的几段参数代码可以被添加,或者在XDE右击鼠标来实现。
Snippets of parameterized code called "code templates" can be added, or "bound" to class operations in XDE by right-clicking the operation.
代码模板通常用来在方法中放置逻辑,可以选择是否依赖XDE模式中所定义的模板参数。
Code templates are used to put logic into methods, and may or may not depend on template parameters defined within a XDE pattern.
在模式中,当代码和模式同步时,把代码模板绑定到一个操作,便会生成相应代码。
Binding a code template to an operation in a pattern will cause that code to be generated when the code and model are synchronized.
代码模板的任务就是将XML转化成SQL,从而能够从单一的模型为不同数据库生成代码。
The code template's job is simply to translate the XML into SQL, which makes it possible to generate code for a variety of databases from a single model.
单元测试期间发现的问题在相应的模式或代码模板中就可以修改,而不是在生成的代码中修改。
Problems discovered during unit testing are fixed in the corresponding pattern or code template, not in the generated code.
本文叙述根据数据库架构信息和定制的代码模板自动生成业务逻辑层代码的实现方法。
According to the database schema information and customized code template, code is built for business logic layer.
请参考和建议的意见看,创建新的模板和MVC中的样本代码模板创建你的一个眼神。
Please have a look at that reference and as was suggested in comments, create a new Template in MVC and have a look at the sample code the template creates for you.
这是一个可开发的系统,它允许架构师修改已存在的代码模板也允许添加一个新的代码模板。
This is an open system that allows the architect to both modify existing code templates and add new ones.
位于抽象模型和代码模板之间的中间模型使用XML模式,生成PHP 和SQL 的代码模板则使用文本模式。
XML mode is used for the temporary models that sit between the abstract model and the code templates. Text mode is used in the code templates when you generate the PHP and the SQL.
SourceMate是Flash与Flex开发者的好伙伴,它提供了代码生成、重构、代码模板、元数据标签等功能。
SourceMate is a companion tool for Flash and Flex developers that adds support for code generation, refactoring, code templates, metadata tags and more.
这将打开向导,其中您可以指定代码模板的名称,然后定义TemplateParameters和Body(图29)。
This opens a wizard in which you can assign the code template a name, and then define template Parameters and a Body (Figure 29).
我们还提供了交互式的“snippets”(代码模板)及snippet编辑器,这样用户就可以创建新的snippets了。
We also have interactive 'snippets' (code templates) and a snippet editor so users can create new snippets.
更为复杂的源代码模板工具可以更好地满足其他应用程序的需求,例如ApacheVelocity(参见参考资料)。
Other applications will benefit from a more sophisticated source template facility, such as Apache Velocity (see Resources).
实现DHTML最简便的方法就是首先在平面HTML页面中编写,不使用PHP或任何服务器端语言,随后以该代码作为PHP代码模板来生成DHTML。
The easiest way to implement DHTML is to first write it in a plain HTML page, without PHP or any server-side language, then use that code as a template for the PHP code to generate the DHTML.
清单6显示的newFunction()方法将返回一个对象,它将实现Function接口(参见 清单5中的源代码模板)
The newFunction() method shown in Listing 6 returns an object that implements the Function interface (see the source template in Listing 5)
清单10显示了示例构建脚本模板代码。
模板的代码多数不会被替代。
模板化 ——能够创建用于页面代码重用和取代的模板。
Templating — The ability to create a template for page code reuse and substitution.
模板化 ——能够创建用于页面代码重用和取代的模板。
Templating — The ability to create a template for page code reuse and substitution.
应用推荐