It turns out that subclassing is not only familiar but is probably the most flexible and straightforward way to map from model to view.
结果证明,子分类方法不但十分常用,而且还可能是从模型映射到视图最灵活也是最直接的方法。
Then we make a standard model, controller, and view for words to view the list of words from the database.
然后将为单词创建一个标准模型、控制器和视图查看数据库中的单词列表。
It then provides a view model to add structure to the data so it can be aggregated to provide useful meaning.
然后它提供一个视图模型为数据添加结构,因此能够聚合数据得出有用的含义。
The DPTK is architected to use Model View Controller.
DPTK设计为使用模型-视图-控制器模式。
This stateless behavior made it difficult for the model to notify the view of changes.
这种无状态行为使得模型很难将更改通知视图。
The goal of the controller is to act as the glue from the model to the view.
控制器的目标是充当从模型到视图的粘合剂。
Instead the controller component is responsible for view to model updates, and often for updating the view based on the model data.
控制器组件则负责查看模型更新,并根据模型数据更新视图。
Adopt a Model View Controller (MVC) architecture pattern to ensure a flexible architecture.
采用模型-视图-控制器(Model - View - Controller,MVC)体系结构模式以确保体系结构的灵活性。
Each controller, or EditPart as they are called here, is responsible both for mapping the model to its view, and for making changes to the model.
每个控制器(即本文所谓的EditPart)负责将模型映射到它的视图,也负责对模型进行更改。
The EditPart also observes the model, and updates the view to reflect changes in the model's state.
EditPart还观察模型并更新视图,以反映模型状态中的变化。
Since all the cases are already present in the model, we can return to this view after we finish with the Search Items case and continue to model the next use case.
由于所有的用例都已经显示在模型中,在结束SearchItems用例后我们可以返回到这个视图,并接着为下一个用例建模。
Rails helpers are functions that help to simplify model, view, or controller code.
Rails帮助器是帮助简化模型、视图、控制器代码的函数。
Whatever you decide, make sure that you achieve a clean separation between your model and view to stay out of the most fundamental server-side antipattern: the Magic Servlet.
不管您如何选择,请确保您的模型和视图之间实现了完全的分离,从而避免最基本的服务器端反模式:魔法Servlet。
Hobo may be thought of as a set of cooperating extensions to Rails' model, view, and controller layers.
开发者可以将Hobo看做一个Rails的模型、视图和控制器的协作扩展工具集。
To create the model, switch to model View and expand the top-most leaf. You'll see three further leaves at the next level.
要创建模型,先切换到Model View并展开最上面的叶子。
It is particularly useful for our project since it shields us from having to know how to adapt the model to the view.
这种方案对我们的项目极其有用,因为它让我们不必去了解如何调整模型以适应视图。
The view model here makes a concrete reference to the service.
这个视图模型对服务做了一个具体的引用。
The controller requests data from the model and sends it to the view for formatting.
控制器从模型请求数据并发送给视图完成格式化。
Also, after reading this article, you should be able to model partial and generic types, and use a mapping model to design the file system view of the source code.
在阅读了本篇文章后,您应该学会建立分部及通用类型的模型,和使用映射模型来设计源代码的文件系统概览。
It USES metaprogramming to generate the view model and allow you to bind to the objects you define in your controller.
它使用元编程来生成视图模型,使你能够绑定至你在控制器中定义的对象。
One way around this is to build a custom view that will provide access to the domain model content we desire.
有一种解决方法是,构建自定义的视图,使我们能够访问所需的域模型内容。
From a design perspective, this is a classic problem of the data model being coupled to view generation.
从设计的角度来看,这是数据模型与视图生成耦合的经典问题。
A useful scenario is to use a UNION ALL view to model a merger, where each branch of the UNION ALL operation represents data from a branch or division of a company.
一个有用的场景是使用UNIONALL视图来为合并建模,其中UNION ALL操作的每个分支表示来自一个分公司或公司某部门的数据。
You can define a view model yourself to add customized behavior but you don't need to.
你可以定义你自己的视图模型以添加行为,但你并不需要。
This design technique, called model-view-controller (MVC), makes it easier to isolate changes to a view or model.
这项设计技术叫做模型-视图-控制器(mvc),它使对视图或模型的更改更容易分隔开。
This assumption means that you don't need to worry about model-view separation at all, right?
这种假定就意味着您根本不需要担心模型-视图分离,对吗?
Clean separation between model and view is important to reduced coupling, making radical view changes less likely to ripple into the model and vice versa.
在模型和视图之间的清楚分离,对于降低耦合很重要,并使对视图的根本修改不会影响到模型,反之亦然。
Model refers to your data, View to your presentation layer, and Controller refers to the application or business logic.
模型指数据,视图指表示层,而控制器指应用程序逻辑或业务逻辑。
It implements the Model - ViewModel - View - Controller pattern that seems to be popular in WPF.
它实现了模型-视图模型-视图-控制器这个看起来在WPF中很流行的模式。
It implements the Model - ViewModel - View - Controller pattern that seems to be popular in WPF.
它实现了模型-视图模型-视图-控制器这个看起来在WPF中很流行的模式。
应用推荐