编写测试要比编写模型代码简单得多。
迁移模型代码。
如何:编译和运行自动化对象模型代码示例。
How to: Compile and Run the Automation Object Model Code Examples.
接着您希望执行使用这个对象模型的代码文件。
You then want to execute files of code that consume that object model.
对于应用程序,这导致代码过度膨胀以及数据模型过度复杂。
This results in both code bloat and an overly complex data model for your application.
你如何看待模型驱动开发与代码生成技术的未来?
What do you see as the future of Model Driven Development and Code Generation?
下面显示的就是这个线性模型的代码。
在每一种情况下,都要使用您先前创建的空的代码模型。
In either case, use the empty code models that you created earlier.
好在每个事件模型的代码都十分紧凑。
Fortunately, the code for each event model is quite compact.
模型较之代码支持一个更加丰富的关系类型的集合。
Models support a richer set of relationship types than those found in code.
最后一步是从模型回到可执行代码的转换。
The final step is the transformation from models back to executable code.
最终,所有模型都会转化成代码。
但是如果业务模型改变,这些代码需要重新生成。
But if the business model changes, the code has to be re-generated.
在一些情况下,特定的组织有他们自己的代码部署客户实践模型。
In some cases, particular organizations have their own custom promotion model for code deployment.
捕获太多的细节就像是在使用某个模型或领域特定语言来开发代码。
Capturing too much detail is like developing code using a model or domain-specific language.
接着,模型会编译转换为代码。
可以重构库代码创建更好的连接点模型。
Base code is refactored to create a better join point model.
清单1中的代码显示了员工数据模型的定义。
The code in Listing 1 shows the definition of the employee data model.
图1显示了正在生成的代码的类模型。
Figure 1 shows the class model for the code being generated.
清单5中的代码是一个示例模型定义。
为模型编写测试代码。
你还可以直接从设计模型中产生测试代码。
You may also be able to generate test code directly from the design models.
该模型支持通过少量代码和配置实现这种访问。
The model supports a method of providing this access with very little code and configuration.
由于这个模型被直接绑定到了代码本身上,因此维护的问题就简单多了。
Because the model is tied directly into the code itself, maintenance becomes easier.
按照与代码相同的方式构造模型可以极大地简化代码模板。
Structuring the model the same way as the code can greatly simplify the code templates.
这里用同样的技术从php模型构建php代码。
Here, I use a similar technique to build PHP from a PHP model.
模型、代码和文档产生。
模型驱动开发和代码生成。
将这些模型转换为实际运行代码。
从ecore模型生成代码的自动化。
应用推荐