C# Class RepositoryExample.Service.CharacterService

Inheritance: ICharacterService
Afficher le fichier Open project: ryancole/RepositoryExample

Méthodes publiques

Méthode Description
CharacterService ( IWarcraftContext context ) : System.Collections.Generic
GetAll ( ) : IReadOnlyCollection

Retrieve all Characters

GetByName ( string name ) : Character

Retrieve a Character with the specified Name

Insert ( Character character ) : Character

Insert a new Character

Method Details

CharacterService() public méthode

public CharacterService ( IWarcraftContext context ) : System.Collections.Generic
context IWarcraftContext
Résultat System.Collections.Generic

GetAll() public méthode

Retrieve all Characters
public GetAll ( ) : IReadOnlyCollection
Résultat IReadOnlyCollection

GetByName() public méthode

Retrieve a Character with the specified Name
public GetByName ( string name ) : Character
name string
Résultat RepositoryExample.Entity.Character

Insert() public méthode

Insert a new Character
public Insert ( Character character ) : Character
character RepositoryExample.Entity.Character
Résultat RepositoryExample.Entity.Character