Class Rating
Inheritance
System.Object
Rating
Implements
IHasCreationTime
IMustHaveCreator
Assembly: Volo.CmsKit.Domain.dll
Syntax
public class Rating : BasicAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasCreationTime, IMustHaveCreator
Constructors
Rating()
Declaration
Rating(Guid, String, String, Int16, Guid, Nullable<Guid>)
Declaration
public Rating(Guid id, string entityType, string entityId, short starCount, Guid creatorId, Guid? tenantId = null)
Parameters
Type |
Name |
Description |
Guid |
id |
|
System.String |
entityType |
|
System.String |
entityId |
|
System.Int16 |
starCount |
|
Guid |
creatorId |
|
System.Nullable<Guid> |
tenantId |
|
Properties
CreationTime
Declaration
public virtual DateTime CreationTime { get; set; }
Property Value
Type |
Description |
DateTime |
|
CreatorId
Declaration
public virtual Guid CreatorId { get; set; }
Property Value
EntityId
Declaration
public virtual string EntityId { get; protected set; }
Property Value
Type |
Description |
System.String |
|
EntityType
Declaration
public virtual string EntityType { get; protected set; }
Property Value
Type |
Description |
System.String |
|
StarCount
Declaration
public virtual short StarCount { get; protected set; }
Property Value
Type |
Description |
System.Int16 |
|
TenantId
Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Type |
Description |
System.Nullable<Guid> |
|
Methods
SetStarCount(Int16)
Declaration
public virtual void SetStarCount(short starCount)
Parameters
Type |
Name |
Description |
System.Int16 |
starCount |
|
Implements
IHasCreationTime
IMustHaveCreator
Extension Methods