Home · Blog · Download · Docs · About
Specifies the sort order for blog posts.
Represents query parameters for filtering and paginating blog posts from the database.
page
- The page number for pagination (1-based).pageSize
- The number of posts per page. Use -1 for no pagination.category
- The category to filter posts by, or null for no category filtering.startDate
- The earliest publication date to include, or null for no start date filtering.endDate
- The latest publication date to include, or null for no end date filtering.slug
- The specific post slug to retrieve, or null for no slug filtering.sortOrder
- The sort order for the posts, or null for natural order.Provides read-only access to blog posts with querying and retrieval capabilities.
QueryPostsAsync(BigBlogQuery query) - Queries blog posts based on the specified criteria.
query
- The query parameters including pagination, date range, and category filters.GetPostAsync(int id) - Gets a specific blog post by its unique identifier.
id
- The unique identifier of the blog post.GetCategoriesAsync() - Get a list of the categories available in the blog.
Extension methods that provide convenient access patterns for blog post retrieval.
GetAllPostsAsync(IBigBlogReader blog) - Gets all available blog posts without any filtering or pagination.
blog
- The blog reader instance.GetCategoryPostsAsync(IBigBlogReader blog, string category) - Gets all posts within a specific category.
blog
- The blog reader instance.category
- The category name to filter by.FindDatedPostsAsync(IBigBlogReader blog, int year, string slug) - Gets all posts published within a specific date range.
blog
- The blog reader instance.year
- The year of the post to find.slug
- The slug of the post to find.Represents a blog post entity.
Note: Located in BigBlog.Sqlite namespace
< back