两者都和模型绑定在一起。
我如何创建一个模型绑定绑定的数组?
在第17章中,我们将深度涉及模型绑定。
有可能拿回显示名从MVC定制模型绑定器吗?
Is it possible to get the Display Name back from a MVC custom model binder?
我们将在第17章深度涉及值提供器和模型绑定器。
We cover value providers and model binders in depth in Chapter 17.
允许HTML标记在模型绑定通过跳过属性的请求验证。
To allow HTML markup during model binding by skipping request validation for the property.
指定存储过程,触发器,用户定义函数和视图的加密和模型绑定。
Specify schema binding and encryption for stored procedures, triggers, user-defined functions, and views.
当调用某个服务时,将响应与对象模型绑定,从而达到处理任何可发生事件的效果。
When you make the call to the service, there's the matter of binding the response to model objects and dealing with any errors that may occur.
registerData()方法将数据模型绑定到一个内部映射,让操作处理程序能够找到它。
The registerData() method binds the data model to an internal map so that the action handler functions can find it.
现在,我们已经介绍了自定义模型绑定器,到了我们通过添加两个新特性来完成购物车功能的时候了。
Now that we've introduced our custom model binder, it's time to complete the cart functionality by adding two new features.
生成文本框、下拉列表、以及其它元素的HTML辅助方法有一个十分灵活的特性,可以用来与模型绑定相关联。
The HTML helper methods that create text boxes, drop-downs, and other elements have a very handy feature that can be used in conjunction with model binding.
我们可以看到,fileupload组件有一个相应的hx: fileupload标签,通过其属性值该标签可以与模型绑定。
As we can see, the fileupload component has a corresponding tag hx: fileupload that can be bound to the model via its value attribute.
默认的模型绑定器同样不能指定一个null值到一个不允许为null的属性中,这里的情况是模型绑定其不能指定一个null值到UnitsInStock属性中。
The default model binder also cannot assign a null value to a property that does not accept nulls. In particular, the model binder cannot assign a null value to the UnitsInStock property.
我还添加了一个选项,可以打印出绑定的代码生成模型树。
I also added an option to print out the code generation model tree for a binding.
此方法导致绑定到模型的所有控件被刷新。
This method causes all controls bound to your model to be refreshed.
在这些情况中,模型直接与编程语言绑定,这阻止了数据交换功能。
In those cases, the model is bound directly to the programming language, which inhibits data exchange.
它使用元编程来生成视图模型,使你能够绑定至你在控制器中定义的对象。
It USES metaprogramming to generate the view model and allow you to bind to the objects you define in your controller.
以我的经验,绑定命令和模型或属性非常的直接。
In my experience, the idea of binding both commands and models or properties is straightforward.
模型可以绑定任何你想要的ORM框架,但是如果你不需要的话,你也不比为非要使用一个而付出内存和性能的开销。
Models can bind to any orm framework you like, but if you don't use one at all, you don't pay a price for using one in terms of memory usage and performance.
有关SCA组装模型中的SCA绑定的概述,请参见本系列的第1部分。
See Part 1 of this series for an overview of SCA bindings within the SCA assembly model.
文档模型和数据绑定实现使用该解析结果来构建其在内存中的表示,因此它们决不会比解析器本身快。
The document models and data binding implementations use the parse results to build their representations in memory, so they're never going to be faster than the parser itself.
与使用文档模型相比,数据绑定为开发人员带来了更大的方便,同时,它在性能和内存使用方面的效率也更高。
Data binding is not only more convenient for developers than working with a document model, it's also much more efficient in terms of both performance and memory use.
数据模型包括后面绑定到用户界面控件的实例数据。
This data model contains instance data that you'll later bind to user interface controls.
但它也是绑定到模型的。
实际上批评它的人很多,因为它鼓吹的方案是将视图组件的状态直接绑定到模型。
Actually, it has been bashed by many, as it advocates a solution of simply data-binding of view component state directly into the model.
真正的力量源于XML数据模型和绑定,使事件分析器能够在原始页面和新元素之间进行转换。
The real power is in the XML Data Model and the bindings that enable the event parser to translate between the original page and the new elements.
该按钮是一个三向开关;它可以高亮显示绑定到数据模型的项目、未绑定到数据模型的项目或者无项目。
This button is a three-way switch; it highlights items that are bound to the data model, items that are not bound to the data model, or no items.
现在,已经创建了模型、实例和绑定。
Now you have finished creating the model, the instance, and the bindings.
从HTML元素的角度来看,该输入字段预先填充了数据模型中绑定的值。
If you think in terms of HTML elements, the input field will be pre-filled with the bound value from the data model.
从HTML元素的角度来看,该输入字段预先填充了数据模型中绑定的值。
If you think in terms of HTML elements, the input field will be pre-filled with the bound value from the data model.
应用推荐