C# Class PetaPocoWebTest.Repositories.TagRepository

Inheritance: BaseRepository
显示文件 Open project: GarethElms/PetaPoco----A-simple-web-app Class Usage Examples

Public Methods

Method Description
Delete ( int tagId ) : bool
Insert ( Tag tag ) : bool
RetrieveAll ( ) : List
RetrieveAllForArticle ( int articleId ) : List
RetrieveById ( int tagId ) : Tag
RetrieveByTag ( string tagName ) : Tag
TagRepository ( PetaPoco database ) : System
Update ( Tag tag ) : bool

Method Details

Delete() public method

public Delete ( int tagId ) : bool
tagId int
return bool

Insert() public method

public Insert ( Tag tag ) : bool
tag PetaPocoWebTest.Poco.Tag
return bool

RetrieveAll() public method

public RetrieveAll ( ) : List
return List

RetrieveAllForArticle() public method

public RetrieveAllForArticle ( int articleId ) : List
articleId int
return List

RetrieveById() public method

public RetrieveById ( int tagId ) : Tag
tagId int
return PetaPocoWebTest.Poco.Tag

RetrieveByTag() public method

public RetrieveByTag ( string tagName ) : Tag
tagName string
return PetaPocoWebTest.Poco.Tag

TagRepository() public method

public TagRepository ( PetaPoco database ) : System
database PetaPoco
return System

Update() public method

public Update ( Tag tag ) : bool
tag PetaPocoWebTest.Poco.Tag
return bool