Inheritance
System.Object
Comment
Implements
IHasCreationTime
IMustHaveCreator
IMultiTenant
Assembly: Volo.CmsKit.Domain.dll
public class Comment : BasicAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasCreationTime, IMustHaveCreator, IMultiTenant
Constructors
Declaration
Declaration
public Comment(Guid id, string entityType, string entityId, string text, Guid? repliedCommentId, Guid creatorId, Guid? tenantId = null)
Parameters
Type |
Name |
Description |
Guid |
id |
|
System.String |
entityType |
|
System.String |
entityId |
|
System.String |
text |
|
System.Nullable<Guid> |
repliedCommentId |
|
Guid |
creatorId |
|
System.Nullable<Guid> |
tenantId |
|
Properties
Declaration
public virtual DateTime CreationTime { get; set; }
Property Value
Type |
Description |
DateTime |
|
Declaration
public virtual Guid CreatorId { get; set; }
Property Value
Declaration
public virtual string EntityId { get; protected set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual string EntityType { get; protected set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual Guid? RepliedCommentId { get; protected set; }
Property Value
Type |
Description |
System.Nullable<Guid> |
|
Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Type |
Description |
System.Nullable<Guid> |
|
Declaration
public virtual string Text { get; protected set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public virtual void SetText(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Declaration
protected virtual void SetTextInternal(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Implements
IHasCreationTime
IMustHaveCreator
IMultiTenant
Extension Methods