C# Class Github.BlogEngine.Repositories.PostRepository

Inheritance: IPostRepository
Show file Open project: alexbeletsky/beerncode Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetAllPosts ( ) : IList
GetPagedPosts ( int page, int pageSize ) : IEnumerable
GetPost ( string path, string treeSha ) : Post
GetPostBySha ( string sha ) : Post
GetPostByUrl ( string url ) : Post

Method Details

GetAllPosts() public method

public GetAllPosts ( ) : IList
return IList

GetPagedPosts() public method

public GetPagedPosts ( int page, int pageSize ) : IEnumerable
page int
pageSize int
return IEnumerable

GetPost() public method

public GetPost ( string path, string treeSha ) : Post
path string
treeSha string
return Github.BlogEngine.Models.Post

GetPostBySha() public method

public GetPostBySha ( string sha ) : Post
sha string
return Github.BlogEngine.Models.Post

GetPostByUrl() public method

public GetPostByUrl ( string url ) : Post
url string
return Github.BlogEngine.Models.Post