aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/RatingSource.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Entities/RatingSource.cs')
-rw-r--r--Jellyfin.Data/Entities/RatingSource.cs25
1 files changed, 14 insertions, 11 deletions
diff --git a/Jellyfin.Data/Entities/RatingSource.cs b/Jellyfin.Data/Entities/RatingSource.cs
index 070f1ae27..2a4bed7ec 100644
--- a/Jellyfin.Data/Entities/RatingSource.cs
+++ b/Jellyfin.Data/Entities/RatingSource.cs
@@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities
{
/// <summary>
- /// This is the entity to store review ratings, not age ratings
+ /// This is the entity to store review ratings, not age ratings.
/// </summary>
public partial class RatingSource
{
@@ -28,7 +28,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Public constructor with required data
+ /// Public constructor with required data.
/// </summary>
/// <param name="maximumvalue"></param>
/// <param name="minimumvalue"></param>
@@ -62,7 +62,7 @@ namespace Jellyfin.Data.Entities
*************************************************************************/
/// <summary>
- /// Backing field for Id
+ /// Backing field for Id.
/// </summary>
internal int _Id;
/// <summary>
@@ -75,7 +75,7 @@ namespace Jellyfin.Data.Entities
partial void GetId(ref int result);
/// <summary>
- /// Identity, Indexed, Required
+ /// Identity, Indexed, Required.
/// </summary>
[Key]
[Required]
@@ -88,6 +88,7 @@ namespace Jellyfin.Data.Entities
GetId(ref value);
return (_Id = value);
}
+
protected set
{
int oldValue = _Id;
@@ -100,7 +101,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for Name
+ /// Backing field for Name.
/// </summary>
protected string _Name;
/// <summary>
@@ -125,6 +126,7 @@ namespace Jellyfin.Data.Entities
GetName(ref value);
return (_Name = value);
}
+
set
{
string oldValue = _Name;
@@ -137,7 +139,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for MaximumValue
+ /// Backing field for MaximumValue.
/// </summary>
protected double _MaximumValue;
/// <summary>
@@ -150,7 +152,7 @@ namespace Jellyfin.Data.Entities
partial void GetMaximumValue(ref double result);
/// <summary>
- /// Required
+ /// Required.
/// </summary>
[Required]
public double MaximumValue
@@ -161,6 +163,7 @@ namespace Jellyfin.Data.Entities
GetMaximumValue(ref value);
return (_MaximumValue = value);
}
+
set
{
double oldValue = _MaximumValue;
@@ -173,7 +176,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for MinimumValue
+ /// Backing field for MinimumValue.
/// </summary>
protected double _MinimumValue;
/// <summary>
@@ -186,7 +189,7 @@ namespace Jellyfin.Data.Entities
partial void GetMinimumValue(ref double result);
/// <summary>
- /// Required
+ /// Required.
/// </summary>
[Required]
public double MinimumValue
@@ -197,6 +200,7 @@ namespace Jellyfin.Data.Entities
GetMinimumValue(ref value);
return (_MinimumValue = value);
}
+
set
{
double oldValue = _MinimumValue;
@@ -209,7 +213,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Required, ConcurrenyToken
+ /// Required, ConcurrenyToken.
/// </summary>
[ConcurrencyCheck]
[Required]
@@ -225,7 +229,6 @@ namespace Jellyfin.Data.Entities
*************************************************************************/
[ForeignKey("MetadataProviderId_Source_Id")]
public virtual MetadataProviderId Source { get; set; }
-
}
}