aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-12 22:22:20 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-12 22:22:20 -0400
commitc1360a1dc312938e77e52a509eb9186300bcb40d (patch)
tree492b4d717a12b20a4649b2fbc48050430ea72d50 /Jellyfin.Data/Entities
parent9ad839c7766bd5d6121a10b2c306d6fef9666c52 (diff)
parent32c118222647f121c0b17055c0ef158763c0b5d2 (diff)
Merge branch 'master' into userdb-efcore
# Conflicts: # Emby.Server.Implementations/Data/SqliteUserDataRepository.cs # Emby.Server.Implementations/Library/UserManager.cs # Jellyfin.Data/Entities/User.cs # Jellyfin.Data/ISavingChanges.cs # Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj # Jellyfin.Server.Implementations/JellyfinDb.cs # Jellyfin.Server/Migrations/MigrationRunner.cs # MediaBrowser.Model/Notifications/NotificationOptions.cs # MediaBrowser.sln
Diffstat (limited to 'Jellyfin.Data/Entities')
-rw-r--r--Jellyfin.Data/Entities/Artwork.cs7
-rw-r--r--Jellyfin.Data/Entities/Book.cs8
-rw-r--r--Jellyfin.Data/Entities/BookMetadata.cs7
-rw-r--r--Jellyfin.Data/Entities/Chapter.cs6
-rw-r--r--Jellyfin.Data/Entities/Collection.cs6
-rw-r--r--Jellyfin.Data/Entities/CollectionItem.cs6
-rw-r--r--Jellyfin.Data/Entities/Company.cs5
-rw-r--r--Jellyfin.Data/Entities/CompanyMetadata.cs9
-rw-r--r--Jellyfin.Data/Entities/CustomItem.cs7
-rw-r--r--Jellyfin.Data/Entities/CustomItemMetadata.cs10
-rw-r--r--Jellyfin.Data/Entities/Episode.cs8
-rw-r--r--Jellyfin.Data/Entities/EpisodeMetadata.cs9
-rw-r--r--Jellyfin.Data/Entities/Genre.cs6
-rw-r--r--Jellyfin.Data/Entities/Group.cs5
-rw-r--r--Jellyfin.Data/Entities/Library.cs6
-rw-r--r--Jellyfin.Data/Entities/LibraryItem.cs6
-rw-r--r--Jellyfin.Data/Entities/LibraryRoot.cs6
-rw-r--r--Jellyfin.Data/Entities/MediaFile.cs5
-rw-r--r--Jellyfin.Data/Entities/MediaFileStream.cs6
-rw-r--r--Jellyfin.Data/Entities/Metadata.cs5
-rw-r--r--Jellyfin.Data/Entities/MetadataProvider.cs6
-rw-r--r--Jellyfin.Data/Entities/MetadataProviderId.cs6
-rw-r--r--Jellyfin.Data/Entities/Movie.cs8
-rw-r--r--Jellyfin.Data/Entities/MovieMetadata.cs7
-rw-r--r--Jellyfin.Data/Entities/MusicAlbum.cs8
-rw-r--r--Jellyfin.Data/Entities/MusicAlbumMetadata.cs7
-rw-r--r--Jellyfin.Data/Entities/Permission.cs4
-rw-r--r--Jellyfin.Data/Entities/Person.cs5
-rw-r--r--Jellyfin.Data/Entities/PersonRole.cs5
-rw-r--r--Jellyfin.Data/Entities/Photo.cs8
-rw-r--r--Jellyfin.Data/Entities/PhotoMetadata.cs9
-rw-r--r--Jellyfin.Data/Entities/Preference.cs6
-rw-r--r--Jellyfin.Data/Entities/ProviderMapping.cs6
-rw-r--r--Jellyfin.Data/Entities/Rating.cs6
-rw-r--r--Jellyfin.Data/Entities/RatingSource.cs6
-rw-r--r--Jellyfin.Data/Entities/Release.cs5
-rw-r--r--Jellyfin.Data/Entities/Season.cs8
-rw-r--r--Jellyfin.Data/Entities/SeasonMetadata.cs8
-rw-r--r--Jellyfin.Data/Entities/Series.cs8
-rw-r--r--Jellyfin.Data/Entities/SeriesMetadata.cs7
-rw-r--r--Jellyfin.Data/Entities/Track.cs8
-rw-r--r--Jellyfin.Data/Entities/TrackMetadata.cs9
-rw-r--r--Jellyfin.Data/Entities/User.cs9
43 files changed, 26 insertions, 266 deletions
diff --git a/Jellyfin.Data/Entities/Artwork.cs b/Jellyfin.Data/Entities/Artwork.cs
index da31d686e0..bf3029368a 100644
--- a/Jellyfin.Data/Entities/Artwork.cs
+++ b/Jellyfin.Data/Entities/Artwork.cs
@@ -1,15 +1,8 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Artwork")]
public partial class Artwork
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Book.cs b/Jellyfin.Data/Entities/Book.cs
index 7dda26f412..42d24e31d5 100644
--- a/Jellyfin.Data/Entities/Book.cs
+++ b/Jellyfin.Data/Entities/Book.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Book")]
public partial class Book : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Book() : base()
+ protected Book()
{
BookMetadata = new HashSet<BookMetadata>();
Releases = new HashSet<Release>();
diff --git a/Jellyfin.Data/Entities/BookMetadata.cs b/Jellyfin.Data/Entities/BookMetadata.cs
index 8afd371631..d52fe76051 100644
--- a/Jellyfin.Data/Entities/BookMetadata.cs
+++ b/Jellyfin.Data/Entities/BookMetadata.cs
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
@@ -16,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected BookMetadata() : base()
+ protected BookMetadata()
{
Publishers = new HashSet<Company>();
diff --git a/Jellyfin.Data/Entities/Chapter.cs b/Jellyfin.Data/Entities/Chapter.cs
index 1ee6a9c07e..d48cb9b627 100644
--- a/Jellyfin.Data/Entities/Chapter.cs
+++ b/Jellyfin.Data/Entities/Chapter.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Chapter")]
public partial class Chapter
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Collection.cs b/Jellyfin.Data/Entities/Collection.cs
index d3ccb13f52..e2fa3a5bd3 100644
--- a/Jellyfin.Data/Entities/Collection.cs
+++ b/Jellyfin.Data/Entities/Collection.cs
@@ -1,15 +1,9 @@
-using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Collection")]
public partial class Collection
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/CollectionItem.cs b/Jellyfin.Data/Entities/CollectionItem.cs
index f40158b203..4a3d066396 100644
--- a/Jellyfin.Data/Entities/CollectionItem.cs
+++ b/Jellyfin.Data/Entities/CollectionItem.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("CollectionItem")]
public partial class CollectionItem
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Company.cs b/Jellyfin.Data/Entities/Company.cs
index 5b8a21423c..0650271c65 100644
--- a/Jellyfin.Data/Entities/Company.cs
+++ b/Jellyfin.Data/Entities/Company.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Company")]
public partial class Company
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/CompanyMetadata.cs b/Jellyfin.Data/Entities/CompanyMetadata.cs
index 18357b326c..b3ec9c1a7f 100644
--- a/Jellyfin.Data/Entities/CompanyMetadata.cs
+++ b/Jellyfin.Data/Entities/CompanyMetadata.cs
@@ -1,15 +1,8 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("CompanyMetadata")]
public partial class CompanyMetadata : Metadata
{
partial void Init();
@@ -17,7 +10,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected CompanyMetadata() : base()
+ protected CompanyMetadata()
{
Init();
}
diff --git a/Jellyfin.Data/Entities/CustomItem.cs b/Jellyfin.Data/Entities/CustomItem.cs
index 29f4b62a6e..2006717bf2 100644
--- a/Jellyfin.Data/Entities/CustomItem.cs
+++ b/Jellyfin.Data/Entities/CustomItem.cs
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
@@ -16,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected CustomItem() : base()
+ protected CustomItem()
{
CustomItemMetadata = new HashSet<CustomItemMetadata>();
Releases = new HashSet<Release>();
diff --git a/Jellyfin.Data/Entities/CustomItemMetadata.cs b/Jellyfin.Data/Entities/CustomItemMetadata.cs
index 8fbccfdd83..e09e4467ac 100644
--- a/Jellyfin.Data/Entities/CustomItemMetadata.cs
+++ b/Jellyfin.Data/Entities/CustomItemMetadata.cs
@@ -1,15 +1,7 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("CustomItemMetadata")]
public partial class CustomItemMetadata : Metadata
{
partial void Init();
@@ -17,7 +9,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected CustomItemMetadata() : base()
+ protected CustomItemMetadata()
{
Init();
}
diff --git a/Jellyfin.Data/Entities/Episode.cs b/Jellyfin.Data/Entities/Episode.cs
index be358a0fd3..6f6baa14de 100644
--- a/Jellyfin.Data/Entities/Episode.cs
+++ b/Jellyfin.Data/Entities/Episode.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Episode")]
public partial class Episode : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Episode() : base()
+ protected Episode()
{
// NOTE: This class has one-to-one associations with LibraryRoot, LibraryItem and CollectionItem.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
diff --git a/Jellyfin.Data/Entities/EpisodeMetadata.cs b/Jellyfin.Data/Entities/EpisodeMetadata.cs
index a1f4adf7bf..e5431bf223 100644
--- a/Jellyfin.Data/Entities/EpisodeMetadata.cs
+++ b/Jellyfin.Data/Entities/EpisodeMetadata.cs
@@ -1,15 +1,8 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("EpisodeMetadata")]
public partial class EpisodeMetadata : Metadata
{
partial void Init();
@@ -17,7 +10,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected EpisodeMetadata() : base()
+ protected EpisodeMetadata()
{
Init();
}
diff --git a/Jellyfin.Data/Entities/Genre.cs b/Jellyfin.Data/Entities/Genre.cs
index d38265d80b..38f289a8e3 100644
--- a/Jellyfin.Data/Entities/Genre.cs
+++ b/Jellyfin.Data/Entities/Genre.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Genre")]
public partial class Genre
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Group.cs b/Jellyfin.Data/Entities/Group.cs
index 4b58120fc0..54f9f49057 100644
--- a/Jellyfin.Data/Entities/Group.cs
+++ b/Jellyfin.Data/Entities/Group.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Group")]
public partial class Group
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Library.cs b/Jellyfin.Data/Entities/Library.cs
index f3faa8699c..c11c09e916 100644
--- a/Jellyfin.Data/Entities/Library.cs
+++ b/Jellyfin.Data/Entities/Library.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Library")]
public partial class Library
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/LibraryItem.cs b/Jellyfin.Data/Entities/LibraryItem.cs
index 29547562bb..af6c640b97 100644
--- a/Jellyfin.Data/Entities/LibraryItem.cs
+++ b/Jellyfin.Data/Entities/LibraryItem.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("LibraryItem")]
public abstract partial class LibraryItem
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/LibraryRoot.cs b/Jellyfin.Data/Entities/LibraryRoot.cs
index 932e3edb8e..bbc23e1c96 100644
--- a/Jellyfin.Data/Entities/LibraryRoot.cs
+++ b/Jellyfin.Data/Entities/LibraryRoot.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("LibraryRoot")]
public partial class LibraryRoot
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/MediaFile.cs b/Jellyfin.Data/Entities/MediaFile.cs
index dbb65a6f7f..719539e5c2 100644
--- a/Jellyfin.Data/Entities/MediaFile.cs
+++ b/Jellyfin.Data/Entities/MediaFile.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MediaFile")]
public partial class MediaFile
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/MediaFileStream.cs b/Jellyfin.Data/Entities/MediaFileStream.cs
index 3ce18b8d71..7b3399731a 100644
--- a/Jellyfin.Data/Entities/MediaFileStream.cs
+++ b/Jellyfin.Data/Entities/MediaFileStream.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MediaFileStream")]
public partial class MediaFileStream
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Metadata.cs b/Jellyfin.Data/Entities/Metadata.cs
index 5cba24ee3f..467ee68226 100644
--- a/Jellyfin.Data/Entities/Metadata.cs
+++ b/Jellyfin.Data/Entities/Metadata.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Metadata")]
public abstract partial class Metadata
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/MetadataProvider.cs b/Jellyfin.Data/Entities/MetadataProvider.cs
index bc6e04277a..4e4f107fb9 100644
--- a/Jellyfin.Data/Entities/MetadataProvider.cs
+++ b/Jellyfin.Data/Entities/MetadataProvider.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MetadataProvider")]
public partial class MetadataProvider
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/MetadataProviderId.cs b/Jellyfin.Data/Entities/MetadataProviderId.cs
index d381856f3d..926f223dea 100644
--- a/Jellyfin.Data/Entities/MetadataProviderId.cs
+++ b/Jellyfin.Data/Entities/MetadataProviderId.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MetadataProviderId")]
public partial class MetadataProviderId
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Movie.cs b/Jellyfin.Data/Entities/Movie.cs
index 23a340b1b3..b359b42fcd 100644
--- a/Jellyfin.Data/Entities/Movie.cs
+++ b/Jellyfin.Data/Entities/Movie.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Movie")]
public partial class Movie : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Movie() : base()
+ protected Movie()
{
Releases = new HashSet<Release>();
MovieMetadata = new HashSet<MovieMetadata>();
diff --git a/Jellyfin.Data/Entities/MovieMetadata.cs b/Jellyfin.Data/Entities/MovieMetadata.cs
index 090761877e..319ae94e5a 100644
--- a/Jellyfin.Data/Entities/MovieMetadata.cs
+++ b/Jellyfin.Data/Entities/MovieMetadata.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MovieMetadata")]
public partial class MovieMetadata : Metadata
{
partial void Init();
@@ -17,7 +12,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected MovieMetadata() : base()
+ protected MovieMetadata()
{
Studios = new HashSet<Company>();
diff --git a/Jellyfin.Data/Entities/MusicAlbum.cs b/Jellyfin.Data/Entities/MusicAlbum.cs
index fc9c122865..00cb8fe007 100644
--- a/Jellyfin.Data/Entities/MusicAlbum.cs
+++ b/Jellyfin.Data/Entities/MusicAlbum.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MusicAlbum")]
public partial class MusicAlbum : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected MusicAlbum() : base()
+ protected MusicAlbum()
{
MusicAlbumMetadata = new HashSet<MusicAlbumMetadata>();
Tracks = new HashSet<Track>();
diff --git a/Jellyfin.Data/Entities/MusicAlbumMetadata.cs b/Jellyfin.Data/Entities/MusicAlbumMetadata.cs
index 4bfe780d1e..b52ca65646 100644
--- a/Jellyfin.Data/Entities/MusicAlbumMetadata.cs
+++ b/Jellyfin.Data/Entities/MusicAlbumMetadata.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("MusicAlbumMetadata")]
public partial class MusicAlbumMetadata : Metadata
{
partial void Init();
@@ -17,7 +12,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected MusicAlbumMetadata() : base()
+ protected MusicAlbumMetadata()
{
Labels = new HashSet<Company>();
diff --git a/Jellyfin.Data/Entities/Permission.cs b/Jellyfin.Data/Entities/Permission.cs
index 29ba9e1a45..0b5b52cbd0 100644
--- a/Jellyfin.Data/Entities/Permission.cs
+++ b/Jellyfin.Data/Entities/Permission.cs
@@ -1,15 +1,11 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Permission")]
public partial class Permission
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Person.cs b/Jellyfin.Data/Entities/Person.cs
index 6a4ad52851..d893b7e394 100644
--- a/Jellyfin.Data/Entities/Person.cs
+++ b/Jellyfin.Data/Entities/Person.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Person")]
public partial class Person
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/PersonRole.cs b/Jellyfin.Data/Entities/PersonRole.cs
index 0c6cb2c6e1..9bd12c7fb0 100644
--- a/Jellyfin.Data/Entities/PersonRole.cs
+++ b/Jellyfin.Data/Entities/PersonRole.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("PersonRole")]
public partial class PersonRole
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Photo.cs b/Jellyfin.Data/Entities/Photo.cs
index 89f9764442..7abe628913 100644
--- a/Jellyfin.Data/Entities/Photo.cs
+++ b/Jellyfin.Data/Entities/Photo.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Photo")]
public partial class Photo : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Photo() : base()
+ protected Photo()
{
PhotoMetadata = new HashSet<PhotoMetadata>();
Releases = new HashSet<Release>();
diff --git a/Jellyfin.Data/Entities/PhotoMetadata.cs b/Jellyfin.Data/Entities/PhotoMetadata.cs
index b3f796839f..c5502f707a 100644
--- a/Jellyfin.Data/Entities/PhotoMetadata.cs
+++ b/Jellyfin.Data/Entities/PhotoMetadata.cs
@@ -1,15 +1,8 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("PhotoMetadata")]
public partial class PhotoMetadata : Metadata
{
partial void Init();
@@ -17,7 +10,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected PhotoMetadata() : base()
+ protected PhotoMetadata()
{
Init();
}
diff --git a/Jellyfin.Data/Entities/Preference.cs b/Jellyfin.Data/Entities/Preference.cs
index 8b3ddb568f..505f52e6b0 100644
--- a/Jellyfin.Data/Entities/Preference.cs
+++ b/Jellyfin.Data/Entities/Preference.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Preference")]
public partial class Preference
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/ProviderMapping.cs b/Jellyfin.Data/Entities/ProviderMapping.cs
index 0eb098a8ff..6197bd97b7 100644
--- a/Jellyfin.Data/Entities/ProviderMapping.cs
+++ b/Jellyfin.Data/Entities/ProviderMapping.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("ProviderMapping")]
public partial class ProviderMapping
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Rating.cs b/Jellyfin.Data/Entities/Rating.cs
index 46e8c3f117..f70ea8b338 100644
--- a/Jellyfin.Data/Entities/Rating.cs
+++ b/Jellyfin.Data/Entities/Rating.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Rating")]
public partial class Rating
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/RatingSource.cs b/Jellyfin.Data/Entities/RatingSource.cs
index 7e60fac437..070f1ae27e 100644
--- a/Jellyfin.Data/Entities/RatingSource.cs
+++ b/Jellyfin.Data/Entities/RatingSource.cs
@@ -1,18 +1,12 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
/// <summary>
/// This is the entity to store review ratings, not age ratings
/// </summary>
- [Table("RatingSource")]
public partial class RatingSource
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Release.cs b/Jellyfin.Data/Entities/Release.cs
index 91dd35a7f0..d1928fcf7e 100644
--- a/Jellyfin.Data/Entities/Release.cs
+++ b/Jellyfin.Data/Entities/Release.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Release")]
public partial class Release
{
partial void Init();
diff --git a/Jellyfin.Data/Entities/Season.cs b/Jellyfin.Data/Entities/Season.cs
index 3928a4ba62..96e89cde05 100644
--- a/Jellyfin.Data/Entities/Season.cs
+++ b/Jellyfin.Data/Entities/Season.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Season")]
public partial class Season : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Season() : base()
+ protected Season()
{
// NOTE: This class has one-to-one associations with LibraryRoot, LibraryItem and CollectionItem.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
diff --git a/Jellyfin.Data/Entities/SeasonMetadata.cs b/Jellyfin.Data/Entities/SeasonMetadata.cs
index f0e669a49e..64ecbfbfac 100644
--- a/Jellyfin.Data/Entities/SeasonMetadata.cs
+++ b/Jellyfin.Data/Entities/SeasonMetadata.cs
@@ -1,15 +1,9 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("SeasonMetadata")]
public partial class SeasonMetadata : Metadata
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected SeasonMetadata() : base()
+ protected SeasonMetadata()
{
Init();
}
diff --git a/Jellyfin.Data/Entities/Series.cs b/Jellyfin.Data/Entities/Series.cs
index fecc229af9..097b9958e3 100644
--- a/Jellyfin.Data/Entities/Series.cs
+++ b/Jellyfin.Data/Entities/Series.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Series")]
public partial class Series : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Series() : base()
+ protected Series()
{
SeriesMetadata = new HashSet<SeriesMetadata>();
Seasons = new HashSet<Season>();
diff --git a/Jellyfin.Data/Entities/SeriesMetadata.cs b/Jellyfin.Data/Entities/SeriesMetadata.cs
index 15818f9416..52691783f6 100644
--- a/Jellyfin.Data/Entities/SeriesMetadata.cs
+++ b/Jellyfin.Data/Entities/SeriesMetadata.cs
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("SeriesMetadata")]
public partial class SeriesMetadata : Metadata
{
partial void Init();
@@ -17,7 +12,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected SeriesMetadata() : base()
+ protected SeriesMetadata()
{
Networks = new HashSet<Company>();
diff --git a/Jellyfin.Data/Entities/Track.cs b/Jellyfin.Data/Entities/Track.cs
index 50ee43042f..079d73d2bf 100644
--- a/Jellyfin.Data/Entities/Track.cs
+++ b/Jellyfin.Data/Entities/Track.cs
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("Track")]
public partial class Track : LibraryItem
{
partial void Init();
@@ -17,7 +11,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected Track() : base()
+ protected Track()
{
// NOTE: This class has one-to-one associations with LibraryRoot, LibraryItem and CollectionItem.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
diff --git a/Jellyfin.Data/Entities/TrackMetadata.cs b/Jellyfin.Data/Entities/TrackMetadata.cs
index 84679ebb5d..86c9161f6e 100644
--- a/Jellyfin.Data/Entities/TrackMetadata.cs
+++ b/Jellyfin.Data/Entities/TrackMetadata.cs
@@ -1,15 +1,8 @@
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities
{
- [Table("TrackMetadata")]
public partial class TrackMetadata : Metadata
{
partial void Init();
@@ -17,7 +10,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
- protected TrackMetadata() : base()
+ protected TrackMetadata()
{
Init();
}
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.cs
index 1aaa8a180e..8cf144b17c 100644
--- a/Jellyfin.Data/Entities/User.cs
+++ b/Jellyfin.Data/Entities/User.cs
@@ -8,14 +8,15 @@ using Jellyfin.Data.Enums;
namespace Jellyfin.Data.Entities
{
- [Table("User")]
- public class User
+ public partial class User
{
/// <summary>
/// The values being delimited here are Guids, so commas work as they do not appear in Guids.
/// </summary>
private const char Delimiter = ',';
+ partial void Init();
+
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
@@ -26,6 +27,8 @@ namespace Jellyfin.Data.Entities
ProviderMappings = new HashSet<ProviderMapping>();
Preferences = new HashSet<Preference>();
AccessSchedules = new HashSet<AccessSchedule>();
+
+ Init();
}
/// <summary>
@@ -77,6 +80,8 @@ namespace Jellyfin.Data.Entities
RememberSubtitleSelections = true;
EnableNextEpisodeAutoPlay = true;
EnableAutoLogin = false;
+
+ Init();
}
/// <summary>