C# Class Tests.Repository.EmployeeCachingRepository

Mostra file Open project: docevaad/Chain

Public Methods

Method Description
Delete ( int id ) : void
EmployeeCachingRepository ( IClass1DataSource source, CachePolicy policy = null ) : System.Collections.Generic
Get ( int id ) : Employee
GetAll ( ) : IList
Insert ( Employee entity ) : Employee
Update ( Employee entity ) : Employee

Protected Methods

Method Description
CacheKey ( Employee entity ) : string
CacheKey ( int id ) : string

Method Details

CacheKey() protected method

protected CacheKey ( Employee entity ) : string
entity Tests.Models.Employee
return string

CacheKey() protected method

protected CacheKey ( int id ) : string
id int
return string

Delete() public method

public Delete ( int id ) : void
id int
return void

EmployeeCachingRepository() public method

public EmployeeCachingRepository ( IClass1DataSource source, CachePolicy policy = null ) : System.Collections.Generic
source IClass1DataSource
policy Tortuga.Chain.CachePolicy
return System.Collections.Generic

Get() public method

public Get ( int id ) : Employee
id int
return Tests.Models.Employee

GetAll() public method

public GetAll ( ) : IList
return IList

Insert() public method

public Insert ( Employee entity ) : Employee
entity Tests.Models.Employee
return Tests.Models.Employee

Update() public method

public Update ( Employee entity ) : Employee
entity Tests.Models.Employee
return Tests.Models.Employee