C# 클래스 Rebel.Cms.Web.Mvc.ModelBinders.BackOffice.DocumentTypePropertyModelBinder

상속: StandardModelBinder
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object

Ensures that the DataType property of the model is set correctly.

The DataType property may not be null, in which case we need to ensure that the DataTypeId and DataType.Id are the same, if they are not, it means the editor changed the DataType so we need to go look it up by the new Id and re-map. Otherwise if it is null, this generally means that its a new property so we need to lookup the DataType by the DataTypeId and re-map.

DocumentTypePropertyModelBinder ( IRebelApplicationContext applicationContext ) : System

메소드 상세

BindModel() 공개 메소드

Ensures that the DataType property of the model is set correctly.
The DataType property may not be null, in which case we need to ensure that the DataTypeId and DataType.Id are the same, if they are not, it means the editor changed the DataType so we need to go look it up by the new Id and re-map. Otherwise if it is null, this generally means that its a new property so we need to lookup the DataType by the DataTypeId and re-map.
public BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
리턴 object

DocumentTypePropertyModelBinder() 공개 메소드

public DocumentTypePropertyModelBinder ( IRebelApplicationContext applicationContext ) : System
applicationContext IRebelApplicationContext
리턴 System