Saves the provided rating.

Namespace: MonoSoftware.MonoX.Repositories
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public virtual bool SaveRating(
	decimal rating,
	Nullable<Guid> userId,
	Guid parentEntityId,
	int parentEntityType
)
Visual Basic
Public Overridable Function SaveRating ( 
	rating As Decimal,
	userId As Nullable(Of Guid),
	parentEntityId As Guid,
	parentEntityType As Integer
) As Boolean
Visual C++
public:
virtual bool SaveRating(
	Decimal rating, 
	Nullable<Guid> userId, 
	Guid parentEntityId, 
	int parentEntityType
)
F#
abstract SaveRating : 
        rating : decimal * 
        userId : Nullable<Guid> * 
        parentEntityId : Guid * 
        parentEntityType : int -> bool 
override SaveRating : 
        rating : decimal * 
        userId : Nullable<Guid> * 
        parentEntityId : Guid * 
        parentEntityType : int -> bool 

Parameters

rating
Type: System..::..Decimal
Rating score
userId
Type: System..::..Nullable<(Of <(<'Guid>)>)>
User Id
parentEntityId
Type: System..::..Guid
Parent entity id
parentEntityType
Type: System..::..Int32
Parent entity type

Return Value

Type: Boolean
True if rating is saved, false otherwise

Implements

IRatingRepository..::..SaveRating(Decimal, Nullable<(Of <<'(Guid>)>>), Guid, Int32)

See Also