C# Class teamcanada.Tests.Models.InMemoryContributionRepository

Inheritance: teamcanada.Models.IContributionRepository
显示文件 Open project: darraghb1980/EF-Group-Project Class Usage Examples

Public Methods

Method Description
Add ( Contributions ContributionToAdd ) : void
CreateNewContribution ( Contributions ContributionToCreate ) : void
DeleteContribution ( int id ) : void
GetAllContributions ( ) : IEnumerable
GetContributionByID ( int id ) : Contributions
SaveChanges ( ) : int
SaveChanges ( Contributions ContributionToUpdate ) : void

Method Details

Add() public method

public Add ( Contributions ContributionToAdd ) : void
ContributionToAdd teamcanada.Models.Contributions
return void

CreateNewContribution() public method

public CreateNewContribution ( Contributions ContributionToCreate ) : void
ContributionToCreate teamcanada.Models.Contributions
return void

DeleteContribution() public method

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

GetAllContributions() public method

public GetAllContributions ( ) : IEnumerable
return IEnumerable

GetContributionByID() public method

public GetContributionByID ( int id ) : Contributions
id int
return teamcanada.Models.Contributions

SaveChanges() public method

public SaveChanges ( ) : int
return int

SaveChanges() public method

public SaveChanges ( Contributions ContributionToUpdate ) : void
ContributionToUpdate teamcanada.Models.Contributions
return void