C# Класс iServe.Models.dotNailsCommon.DotNailsModelBinder

Наследование: Microsoft.Web.Mvc.DataAnnotations.DataAnnotationsModelBinder
Показать файл Открыть проект

Защищенные методы

Метод Описание
CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type modelType ) : object

For any controller implementing IDotNailsController, this will ask that controller to use its default ModelFactory to create the model entity to be passed into the controller action. This results in the proper initialization of the entity by the factory (most important of which is the setting of the DataContext). For any other controller, the default binder is used to create the entity.

GetDisplayName ( PropertyDescriptor descriptor ) : string
GetValidationAttributes ( PropertyDescriptor propertyDescriptor ) : IEnumerable
OnPropertyValidating ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, PropertyDescriptor propertyDescriptor, object value ) : bool

Описание методов

CreateModel() защищенный Метод

For any controller implementing IDotNailsController, this will ask that controller to use its default ModelFactory to create the model entity to be passed into the controller action. This results in the proper initialization of the entity by the factory (most important of which is the setting of the DataContext). For any other controller, the default binder is used to create the entity.
protected CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type modelType ) : object
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
modelType System.Type
Результат object

GetDisplayName() защищенный статический Метод

protected static GetDisplayName ( PropertyDescriptor descriptor ) : string
descriptor System.ComponentModel.PropertyDescriptor
Результат string

GetValidationAttributes() защищенный статический Метод

protected static GetValidationAttributes ( PropertyDescriptor propertyDescriptor ) : IEnumerable
propertyDescriptor System.ComponentModel.PropertyDescriptor
Результат IEnumerable

OnPropertyValidating() защищенный Метод

protected OnPropertyValidating ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, PropertyDescriptor propertyDescriptor, object value ) : bool
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
propertyDescriptor System.ComponentModel.PropertyDescriptor
value object
Результат bool