C# 클래스 MvcContrib.Binders.DerivedTypeModelBinder

This model binder extends the default model binder to detect alternate runtime types on a page and allow the binder adapt to derived types.
상속: System.Web.Mvc.DefaultModelBinder, IPropertyNameProvider
파일 보기 프로젝트 열기: atomicobject/mvccontrib 1 사용 예제들

공개 메소드들

메소드 설명
CreatePropertyName ( string prefix, string propertyName ) : string
DerivedTypeModelBinder ( ) : System
DerivedTypeModelBinder ( ITypeStampOperator typeStampOperator ) : System

보호된 메소드들

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

An override of CreateModel that focuses on detecting alternate types at runtime

DetectInstantiationType ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type typeToCreate ) : Type

메소드 상세

CreateModel() 보호된 메소드

An override of CreateModel that focuses on detecting alternate types at runtime
protected CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type modelType ) : object
controllerContext System.Web.Mvc.ControllerContext the controller context
bindingContext System.Web.Mvc.ModelBindingContext the binding context
modelType System.Type the target type to be instantiated by this method and rehydrated by /// the default model binder
리턴 object

CreatePropertyName() 공개 메소드

public CreatePropertyName ( string prefix, string propertyName ) : string
prefix string
propertyName string
리턴 string

DerivedTypeModelBinder() 공개 메소드

public DerivedTypeModelBinder ( ) : System
리턴 System

DerivedTypeModelBinder() 공개 메소드

public DerivedTypeModelBinder ( ITypeStampOperator typeStampOperator ) : System
typeStampOperator ITypeStampOperator
리턴 System

DetectInstantiationType() 보호된 메소드

protected DetectInstantiationType ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, Type typeToCreate ) : Type
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
typeToCreate System.Type
리턴 System.Type