WebFu Model Binding

WebFu has utilities that assist in binding models from server controls, form data, other models, dictionaries, etc.
Binding requires a collection of values, a model with properties to update and a call to WFPageUtilities.UpdateModel().

The values must be provided from an implementation of [IWFValueProvider].
WebFu provides a number of built-in providers, including:
When binding values from a provider, WebFu uses a dot "." to crawl child object and child properties. In this way, given a Customer object with an Address property, Customer.Address.City can be updated by the model binder.
It is not advised as a best practice to update database objects directly from the model binder. It is better to update a DTO, a ViewModel or a proxy class from the binder and then update the database object from there.

Last edited May 21, 2012 at 2:44 PM by aikeru, version 1

Comments

No comments yet.