Show / Hide Table of Contents

Class BlogPost

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
CreationAuditedAggregateRoot<Guid>
AuditedAggregateRoot<Guid>
FullAuditedAggregateRoot<Guid>
BlogPost
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
IHasEntityVersion
Inherited Members
FullAuditedAggregateRoot<Guid>.IsDeleted
FullAuditedAggregateRoot<Guid>.DeleterId
FullAuditedAggregateRoot<Guid>.DeletionTime
AuditedAggregateRoot<Guid>.LastModificationTime
AuditedAggregateRoot<Guid>.LastModifierId
CreationAuditedAggregateRoot<Guid>.CreationTime
CreationAuditedAggregateRoot<Guid>.CreatorId
AggregateRoot<Guid>.Validate(ValidationContext)
AggregateRoot<Guid>.ExtraProperties
AggregateRoot<Guid>.ConcurrencyStamp
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Blogs
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
protected BlogPost()

Properties

Author

Declaration
public virtual CmsUser Author { get; set; }
Property Value
Type Description
CmsUser

AuthorId

Declaration
public Guid AuthorId { get; set; }
Property Value
Type Description
Guid

BlogId

Declaration
public virtual Guid BlogId { get; protected set; }
Property Value
Type Description
Guid

Content

Declaration
public virtual string Content { get; protected set; }
Property Value
Type Description
string

CoverImageMediaId

Declaration
public Guid? CoverImageMediaId { get; set; }
Property Value
Type Description
Guid?

EntityVersion

Declaration
public virtual int EntityVersion { get; protected set; }
Property Value
Type Description
int

ShortDescription

Declaration
public virtual string ShortDescription { get; protected set; }
Property Value
Type Description
string

Slug

Declaration
public virtual string Slug { get; protected set; }
Property Value
Type Description
string

Status

Declaration
public virtual BlogPostStatus Status { get; set; }
Property Value
Type Description
BlogPostStatus

TenantId

Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Type Description
Guid?

Title

Declaration
public virtual string Title { get; protected set; }
Property Value
Type Description
string

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

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
IMultiTenant
IHasEntityVersion

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform