Interface IPostRepository
Assembly: Volo.Blogging.Domain.dll
Syntax
public interface IPostRepository : IBasicRepository<Post, Guid>, IBasicRepository<Post>, IReadOnlyBasicRepository<Post, Guid>, IReadOnlyBasicRepository<Post>, IRepository
Methods
GetOrderedList(Guid, Boolean)
Declaration
Task<List<Post>> GetOrderedList(Guid blogId, bool descending = false)
Parameters
| Type |
Name |
Description |
| Guid |
blogId |
|
| System.Boolean |
descending |
|
Returns
| Type |
Description |
| Task<List<Post>> |
|
GetPostByUrl(Guid, String)
Declaration
Task<Post> GetPostByUrl(Guid blogId, string url)
Parameters
| Type |
Name |
Description |
| Guid |
blogId |
|
| System.String |
url |
|
Returns
| Type |
Description |
| Task<Post> |
|
GetPostsByBlogId(Guid)
Declaration
Task<List<Post>> GetPostsByBlogId(Guid id)
Parameters
| Type |
Name |
Description |
| Guid |
id |
|
Returns
| Type |
Description |
| Task<List<Post>> |
|
IsPostUrlInUseAsync(Guid, String, Nullable<Guid>)
Declaration
Task<bool> IsPostUrlInUseAsync(Guid blogId, string url, Guid? excludingPostId = null)
Parameters
| Type |
Name |
Description |
| Guid |
blogId |
|
| System.String |
url |
|
| System.Nullable<Guid> |
excludingPostId |
|
Returns
| Type |
Description |
| Task<System.Boolean> |
|
Extension Methods