C# Class PersonRepository.Caching.CachingRepository

Inheritance: IPersonRepository
Afficher le fichier Open project: jeremybytes/learning-dependency-injection Class Usage Examples

Private Properties

Свойство Type Description
InvalidateCache void
ValidateCache void

Méthodes publiques

Méthode Description
AddPerson ( Person newPerson ) : void
CachingRepository ( IPersonRepository wrappedPersonRepository ) : Common.System
DeletePerson ( string lastName ) : void
GetPeople ( ) : IEnumerable
GetPerson ( string lastName ) : Person
UpdatePeople ( IEnumerable updatedPeople ) : void
UpdatePerson ( string lastName, Person updatedPerson ) : void

Private Methods

Méthode Description
InvalidateCache ( ) : void
ValidateCache ( ) : void

Method Details

AddPerson() public méthode

public AddPerson ( Person newPerson ) : void
newPerson Common.Person
Résultat void

CachingRepository() public méthode

public CachingRepository ( IPersonRepository wrappedPersonRepository ) : Common.System
wrappedPersonRepository IPersonRepository
Résultat Common.System

DeletePerson() public méthode

public DeletePerson ( string lastName ) : void
lastName string
Résultat void

GetPeople() public méthode

public GetPeople ( ) : IEnumerable
Résultat IEnumerable

GetPerson() public méthode

public GetPerson ( string lastName ) : Person
lastName string
Résultat Common.Person

UpdatePeople() public méthode

public UpdatePeople ( IEnumerable updatedPeople ) : void
updatedPeople IEnumerable
Résultat void

UpdatePerson() public méthode

public UpdatePerson ( string lastName, Person updatedPerson ) : void
lastName string
updatedPerson Common.Person
Résultat void