C# Class Guidelines.Core.Validation.DataAnnotationsEngine

Inheritance: IValidationEngine
Show file Open project: basicdays/Guidelines Class Usage Examples

Public Methods

Method Description
DataAnnotationsEngine ( IServiceContainer container, IMapper mapper ) : System.Collections.Generic
IsValid ( object instance ) : bool
IsValid ( object instance, IEnumerable &results ) : bool
Validate ( IEnumerable instances ) : void
Validate ( object instance ) : void

Method Details

DataAnnotationsEngine() public method

public DataAnnotationsEngine ( IServiceContainer container, IMapper mapper ) : System.Collections.Generic
container IServiceContainer
mapper IMapper
return System.Collections.Generic

IsValid() public method

public IsValid ( object instance ) : bool
instance object
return bool

IsValid() public method

public IsValid ( object instance, IEnumerable &results ) : bool
instance object
results IEnumerable
return bool

Validate() public method

public Validate ( IEnumerable instances ) : void
instances IEnumerable
return void

Validate() public method

public Validate ( object instance ) : void
instance object
return void