The view model here makes a concrete reference to the service.
这个视图模型对服务做了一个具体的引用。
The Razor view model was designed for Web Pages first, then adopted by MVC 3.
Razor视图模式起初是为页面开发模式设计的,后来也被MVC3所采用。
You can define a view model yourself to add customized behavior but you don't need to.
你可以定义你自己的视图模型以添加行为,但你并不需要。
It is very simple and contains exactly one service and one view model with a "mock database".
它非常简单并且只包含一个服务和一个带模拟数据库的视图模型。
It then provides a view model to add structure to the data so it can be aggregated to provide useful meaning.
然后它提供一个视图模型为数据添加结构,因此能够聚合数据得出有用的含义。
Assuming MVVM, each item will be a view model.
假设MVVM,每个项目将是一个视图模型。
You should adopt the view model first approach.
你应该先采用视图模型的方法。
The example I've included with this post is view-first. The view is created, then the view model attached.
本文中我使用的示例是视图优先模式。
Aiming to the feature of every view model, we adopt corresponding extension mechanism of UML to describe it.
针对每个视图模型的特点,采用相应的UML扩展机制对其进行描述。
It USES metaprogramming to generate the view model and allow you to bind to the objects you define in your controller.
它使用元编程来生成视图模型,使你能够绑定至你在控制器中定义的对象。
In this case, the view for the contact details can use this same view model, and simply bind to the CurrentContact property.
在这个例子中,联系人详细信息视图可以使用相同的视图模型,并简单绑定到CurrentContact属性。
I use AppUser objects in the view model so that I can extract the name and ID for each user in the view that will allow memberships to be edited.
我在视图模型中使用了AppUser对象,以使我在编辑成员的视图中能够为每个用户提取用户名和ID。
This paper discusses the framework of the "4 + 1" view model of architecture based on the new component model, and USES it in the design of a simple library system.
本文讨论基于新的构件模型的“4 +1”体系结构描述模型的结构框架,并将其运用到简化了的图书馆系统的设计中。
An abstract description of the MRBT service using the connection view model (CVM) is addressed with the redefined call party handling mechanism which presents a technology independent service model.
该文通过连接视图模型对MRBT业务进行了抽象表示,建立了与实现技术无关的MRBT业务模型。
The View Model is essentially the logical representation of the UI.
视图模型本质上是UI的逻辑表示。
In the example below you can see how two asynchronous calls (presumably to a database) are in-lined with the constructor of the view-model.
在下面的例子中,你可以看到两个异步调用(可能是到一个数据库的调用)是如何嵌入视图模型的构造函数里的。
First we'll define the view-model. After that, we will bind the HTML markup to the view-model.
首先,我们要定义视图模型。之后,要将HTML标记与视图模型进行绑定。
To encapsulate these functions, we'll create another view-model class that represents a product.
为了封装这些函数,我们将创建另一个表示产品的视图模型类。
Obuect-oriented view-model is constructed in this paper by use of special data structure of relational CAD system.
运用关系型CAD系统数据结构的独特性,构造面向对象的视图模型。
In it, a single servlet processes view, model and controller logic.
在这个反模式中,一个单独的servlet将处理视图、模型以及控制器逻辑。
Even if you don't do the view-model separation, the MVC pattern is valuable in many situations, so you should take a look at how it works and what it can do for you.
即使您不进行视图-模型的分离,在很多情况下mvc模型也会有所价值,所以您应该去了解它如何工作,以及它可以为您做些什么。
Even if you don't do the view-model separation, the MVC pattern is valuable in many situations, so you should take a look at how it works and what it can do for you.
即使您不进行视图-模型的分离,在很多情况下mvc模型也会有所价值,所以您应该去了解它如何工作,以及它可以为您做些什么。
应用推荐