Class BlogPost
Assembly: Volo.CmsKit.Domain.dll
Syntax
public class BlogPost : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete, IMultiTenant, IHasEntityVersion
Constructors
BlogPost()
Declaration
Properties
Author
Declaration
public virtual CmsUser Author { get; set; }
Property Value
AuthorId
Declaration
public Guid AuthorId { get; set; }
Property Value
BlogId
Declaration
public virtual Guid BlogId { get; protected set; }
Property Value
Content
Declaration
public virtual string Content { get; protected set; }
Property Value
CoverImageMediaId
Declaration
public Guid? CoverImageMediaId { get; set; }
Property Value
EntityVersion
Declaration
public virtual int EntityVersion { get; protected set; }
Property Value
ShortDescription
Declaration
public virtual string ShortDescription { get; protected set; }
Property Value
Slug
Declaration
public virtual string Slug { get; protected set; }
Property Value
Status
Declaration
public virtual BlogPostStatus Status { get; set; }
Property Value
TenantId
Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Title
Declaration
public virtual string Title { get; protected set; }
Property Value
Methods
SetContent(string)
Declaration
public virtual void SetContent(string content)
Parameters
Type |
Name |
Description |
string |
content |
|
SetDraft()
Declaration
public virtual void SetDraft()
SetPublished()
Declaration
public virtual void SetPublished()
SetShortDescription(string)
Declaration
public virtual void SetShortDescription(string shortDescription)
Parameters
Type |
Name |
Description |
string |
shortDescription |
|
SetTitle(string)
Declaration
public virtual void SetTitle(string title)
Parameters
Type |
Name |
Description |
string |
title |
|
SetWaitingForReview()
Declaration
public virtual void SetWaitingForReview()
Implements
Extension Methods