C# Class FriendStorage.DataAccess.FileDataService

Inheritance: IDataService
Afficher le fichier Open project: thomasclaudiushuber/WPFandMVVM_TestDrivenDevelopment

Méthodes publiques

Méthode Description
DeleteFriend ( int friendId ) : void
Dispose ( ) : void
GetAllFriends ( ) : IEnumerable
GetFriendById ( int friendId ) : Friend
SaveFriend ( Friend friend ) : void

Private Methods

Méthode Description
InsertFriend ( Friend friend ) : void
ReadFromFile ( ) : List
SaveToFile ( List friendList ) : void
UpdateFriend ( Friend friend ) : void

Method Details

DeleteFriend() public méthode

public DeleteFriend ( int friendId ) : void
friendId int
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAllFriends() public méthode

public GetAllFriends ( ) : IEnumerable
Résultat IEnumerable

GetFriendById() public méthode

public GetFriendById ( int friendId ) : Friend
friendId int
Résultat FriendStorage.Model.Friend

SaveFriend() public méthode

public SaveFriend ( Friend friend ) : void
friend FriendStorage.Model.Friend
Résultat void