C# Class FubuFastPack.Crud.EditEntityModelBinder

Inheritance: IModelBinder
Mostrar archivo Open project: DarthFubuMVC/FubuFastPack Class Usage Examples

Public Methods

Method Description
Bind ( Type inputModelType, IBindingContext context ) : object
Bind ( Type type, object instance, IBindingContext context ) : void
EditEntityModelBinder ( IEntityDefaults entityDefaults ) : System
Matches ( Type type ) : bool

Private Methods

Method Description
createNewEntity ( Type entityType, IBindingContext context ) : FubuFastPack.Domain.DomainEntity
tryFindExistingEntity ( Type entityType, IBindingContext context ) : FubuFastPack.Domain.DomainEntity

Method Details

Bind() public method

public Bind ( Type inputModelType, IBindingContext context ) : object
inputModelType System.Type
context IBindingContext
return object

Bind() public method

public Bind ( Type type, object instance, IBindingContext context ) : void
type System.Type
instance object
context IBindingContext
return void

EditEntityModelBinder() public method

public EditEntityModelBinder ( IEntityDefaults entityDefaults ) : System
entityDefaults IEntityDefaults
return System

Matches() public method

public Matches ( Type type ) : bool
type System.Type
return bool