Class Comment
Inheritance
System.Object
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
AuditedAggregateRoot<Guid>
FullAuditedAggregateRoot<Guid>
Comment
Inherited Members
Namespace: Volo.Blogging.Comments
Assembly: Volo.Blogging.Domain.dll
Syntax
public class Comment : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, ICreationAuditedObject, IAuditedObject, IFullAuditedObject
Constructors
Comment()
Declaration
protected Comment()
Comment(Guid, Guid, Nullable<Guid>, String)
Declaration
public Comment(Guid id, Guid postId, Guid? repliedCommentId, string text)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
Guid | postId | |
System.Nullable<Guid> | repliedCommentId | |
System.String | text |
Properties
PostId
Declaration
public virtual Guid PostId { get; protected set; }
Property Value
Type | Description |
---|---|
Guid |
RepliedCommentId
Declaration
public virtual Guid? RepliedCommentId { get; protected set; }
Property Value
Type | Description |
---|---|
System.Nullable<Guid> |
Text
Declaration
public virtual string Text { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
SetText(String)
Declaration
public void SetText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
Implements
IHasExtraProperties