Class BlogPost
Represents a blog post in the Builvero platform with subject, body content, and publication status.
public class BlogPost
- Inheritance
-
BlogPost
- Inherited Members
Remarks
Blog posts are authored by admin users and can be published for public viewing. The body content is stored as sanitized HTML. Each post has a unique slug generated from the subject, which is used for public URL routing.
Properties
BodyHtml
Gets or sets the HTML body content of the blog post.
public string BodyHtml { get; set; }
Property Value
- string
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
Remarks
This content is sanitized before storage to prevent XSS attacks. It may contain HTML formatting, images, and links.
CreatedAt
Gets or sets the date and time when the blog post was created.
public DateTime CreatedAt { get; set; }
Property Value
- DateTime
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
CreatedByUser
Gets or sets the navigation property to the user who created the blog post.
public User? CreatedByUser { get; set; }
Property Value
- User
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
CreatedByUserId
Gets or sets the unique identifier of the user who created the blog post.
public Guid CreatedByUserId { get; set; }
Property Value
- Guid
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
Id
Gets or sets the unique identifier for the blog post.
public Guid Id { get; set; }
Property Value
- Guid
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
IsPublished
Gets or sets a value indicating whether the blog post is published and visible to the public.
public bool IsPublished { get; set; }
Property Value
- bool
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
Remarks
Only published posts are returned by public endpoints. Draft posts are only visible to admin users.
Slug
Gets or sets the URL-friendly slug for the blog post, generated from the subject.
public string Slug { get; set; }
Property Value
- string
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
Remarks
The slug must be unique across all blog posts and is used in public URLs (e.g., /blog/post.html?slug=example-post).
Subject
Gets or sets the subject/title of the blog post.
public string Subject { get; set; }
Property Value
- string
- Represents a blog post in the Builvero platform with subject, body content, and publication status.
UpdatedAt
Gets or sets the date and time when the blog post was last updated.
public DateTime UpdatedAt { get; set; }
Property Value
- DateTime
- Represents a blog post in the Builvero platform with subject, body content, and publication status.