C# 클래스 iServe.Models.dotNailsCommon.DotNailsModelBinder

상속: Microsoft.Web.Mvc.DataAnnotations.DataAnnotationsModelBinder
파일 보기 프로젝트 열기: fellowshiptech/ft-iserve

보호된 메소드들

메소드 설명
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