diff --git a/Jellyfin.Data/Entities/Series.cs b/Jellyfin.Data/Entities/Series.cs
index 097b9958e3..4f25c38b75 100644
--- a/Jellyfin.Data/Entities/Series.cs
+++ b/Jellyfin.Data/Entities/Series.cs
@@ -19,14 +19,6 @@ namespace Jellyfin.Data.Entities
Init();
}
- ///
- /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
- ///
- public static Series CreateSeriesUnsafe()
- {
- return new Series();
- }
-
///
/// Public constructor with required data
///
@@ -57,27 +49,27 @@ namespace Jellyfin.Data.Entities
///
/// Backing field for AirsDayOfWeek
///
- protected Enums.Weekday? _AirsDayOfWeek;
+ protected DayOfWeek? _AirsDayOfWeek;
///
/// When provided in a partial class, allows value of AirsDayOfWeek to be changed before setting.
///
- partial void SetAirsDayOfWeek(Enums.Weekday? oldValue, ref Enums.Weekday? newValue);
+ partial void SetAirsDayOfWeek(DayOfWeek? oldValue, ref DayOfWeek? newValue);
///
/// When provided in a partial class, allows value of AirsDayOfWeek to be changed before returning.
///
- partial void GetAirsDayOfWeek(ref Enums.Weekday? result);
+ partial void GetAirsDayOfWeek(ref DayOfWeek? result);
- public Enums.Weekday? AirsDayOfWeek
+ public DayOfWeek? AirsDayOfWeek
{
get
{
- Enums.Weekday? value = _AirsDayOfWeek;
+ DayOfWeek? value = _AirsDayOfWeek;
GetAirsDayOfWeek(ref value);
return (_AirsDayOfWeek = value);
}
set
{
- Enums.Weekday? oldValue = _AirsDayOfWeek;
+ DayOfWeek? oldValue = _AirsDayOfWeek;
SetAirsDayOfWeek(oldValue, ref value);
if (oldValue != value)
{
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.cs
index afda6169c8..2287d802b5 100644
--- a/Jellyfin.Data/Entities/User.cs
+++ b/Jellyfin.Data/Entities/User.cs
@@ -73,12 +73,6 @@ namespace Jellyfin.Data.Entities
///
protected User()
{
- Groups = new HashSet();
- Permissions = new HashSet();
- ProviderMappings = new HashSet();
- Preferences = new HashSet();
- AccessSchedules = new HashSet();
-
Init();
}
diff --git a/Jellyfin.Data/Enums/Weekday.cs b/Jellyfin.Data/Enums/Weekday.cs
deleted file mode 100644
index b799fd8112..0000000000
--- a/Jellyfin.Data/Enums/Weekday.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace Jellyfin.Data.Enums
-{
- public enum Weekday
- {
- Sunday = 0,
- Monday = 1,
- Tuesday = 2,
- Wednesday = 3,
- Thursday = 4,
- Friday = 5,
- Saturday = 6
- }
-}
diff --git a/Jellyfin.Server.Implementations/JellyfinDb.cs b/Jellyfin.Server.Implementations/JellyfinDb.cs
index 8eb35ec87e..7e10d81dca 100644
--- a/Jellyfin.Server.Implementations/JellyfinDb.cs
+++ b/Jellyfin.Server.Implementations/JellyfinDb.cs
@@ -23,7 +23,7 @@ namespace Jellyfin.Server.Implementations
public virtual DbSet Preferences { get; set; }
- public virtual DbSet Users { get; set; }
+ public virtual DbSet Users { get; set; }
/*public virtual DbSet Artwork { get; set; }
public virtual DbSet Books { get; set; }
public virtual DbSet BookMetadata { get; set; }