Clean up generated code

pull/3038/head
Patrick Barron 4 years ago
parent 1927d0e23c
commit 2b41f8ab63

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,188 +9,194 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Artwork [Table("Artwork")]
{ public partial class Artwork
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Artwork() /// </summary>
{ protected Artwork()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Artwork CreateArtworkUnsafe() /// </summary>
{ public static Artwork CreateArtworkUnsafe()
return new Artwork(); {
} return new Artwork();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="path"></param> /// </summary>
/// <param name="kind"></param> /// <param name="path"></param>
/// <param name="_metadata0"></param> /// <param name="kind"></param>
/// <param name="_personrole1"></param> /// <param name="_metadata0"></param>
public Artwork(string path, global::Jellyfin.Data.Enums.ArtKind kind, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.PersonRole _personrole1) /// <param name="_personrole1"></param>
{ public Artwork(string path, Enums.ArtKind kind, Metadata _metadata0, PersonRole _personrole1)
if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path)); {
this.Path = path; if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path));
this.Path = path;
this.Kind = kind;
this.Kind = kind;
if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Artwork.Add(this); if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Artwork.Add(this);
if (_personrole1 == null) throw new ArgumentNullException(nameof(_personrole1));
_personrole1.Artwork = this; if (_personrole1 == null) throw new ArgumentNullException(nameof(_personrole1));
_personrole1.Artwork = this;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="path"></param> /// </summary>
/// <param name="kind"></param> /// <param name="path"></param>
/// <param name="_metadata0"></param> /// <param name="kind"></param>
/// <param name="_personrole1"></param> /// <param name="_metadata0"></param>
public static Artwork Create(string path, global::Jellyfin.Data.Enums.ArtKind kind, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.PersonRole _personrole1) /// <param name="_personrole1"></param>
{ public static Artwork Create(string path, Enums.ArtKind kind, Metadata _metadata0, PersonRole _personrole1)
return new Artwork(path, kind, _metadata0, _personrole1); {
} return new Artwork(path, kind, _metadata0, _personrole1);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ public int Id
get {
{ get
int value = _Id; {
GetId(ref value); int value = _Id;
return (_Id = value); GetId(ref value);
} return (_Id = value);
protected set }
{ protected set
int oldValue = _Id; {
SetId(oldValue, ref value); int oldValue = _Id;
if (oldValue != value) SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for Path
/// </summary>
protected string _Path;
/// <summary>
/// When provided in a partial class, allows value of Path to be changed before setting.
/// </summary>
partial void SetPath(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Path to be changed before returning.
/// </summary>
partial void GetPath(ref string result);
/// <summary>
/// Required, Max length = 65535
/// </summary>
[Required]
[MaxLength(65535)]
[StringLength(65535)]
public string Path
{
get
{
string value = _Path;
GetPath(ref value);
return (_Path = value);
}
set
{ {
_Id = value; string oldValue = _Path;
SetPath(oldValue, ref value);
if (oldValue != value)
{
_Path = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Kind
/// Backing field for Path /// </summary>
/// </summary> internal Enums.ArtKind _Kind;
protected string _Path; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Kind to be changed before setting.
/// When provided in a partial class, allows value of Path to be changed before setting. /// </summary>
/// </summary> partial void SetKind(Enums.ArtKind oldValue, ref Enums.ArtKind newValue);
partial void SetPath(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Kind to be changed before returning.
/// When provided in a partial class, allows value of Path to be changed before returning. /// </summary>
/// </summary> partial void GetKind(ref Enums.ArtKind result);
partial void GetPath(ref string result);
/// <summary>
/// <summary> /// Indexed, Required
/// Required, Max length = 65535 /// </summary>
/// </summary> [Required]
[Required] public Enums.ArtKind Kind
[MaxLength(65535)] {
[StringLength(65535)] get
public string Path
{
get
{
string value = _Path;
GetPath(ref value);
return (_Path = value);
}
set
{
string oldValue = _Path;
SetPath(oldValue, ref value);
if (oldValue != value)
{ {
_Path = value; Enums.ArtKind value = _Kind;
GetKind(ref value);
return (_Kind = value);
} }
} set
}
/// <summary>
/// Backing field for Kind
/// </summary>
internal global::Jellyfin.Data.Enums.ArtKind _Kind;
/// <summary>
/// When provided in a partial class, allows value of Kind to be changed before setting.
/// </summary>
partial void SetKind(global::Jellyfin.Data.Enums.ArtKind oldValue, ref global::Jellyfin.Data.Enums.ArtKind newValue);
/// <summary>
/// When provided in a partial class, allows value of Kind to be changed before returning.
/// </summary>
partial void GetKind(ref global::Jellyfin.Data.Enums.ArtKind result);
/// <summary>
/// Indexed, Required
/// </summary>
[Required]
public global::Jellyfin.Data.Enums.ArtKind Kind
{
get
{
global::Jellyfin.Data.Enums.ArtKind value = _Kind;
GetKind(ref value);
return (_Kind = value);
}
set
{
global::Jellyfin.Data.Enums.ArtKind oldValue = _Kind;
SetKind(oldValue, ref value);
if (oldValue != value)
{ {
_Kind = value; Enums.ArtKind oldValue = _Kind;
SetKind(oldValue, ref value);
if (oldValue != value)
{
_Kind = value;
}
} }
} }
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,64 +9,67 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Book: global::Jellyfin.Data.Entities.LibraryItem [Table("Book")]
{ public partial class Book : LibraryItem
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected Book(): base() protected Book() : base()
{ {
BookMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.BookMetadata>(); BookMetadata = new HashSet<BookMetadata>();
Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>(); Releases = new HashSet<Release>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static Book CreateBookUnsafe() public static Book CreateBookUnsafe()
{ {
return new Book(); return new Book();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public Book(Guid urlid, DateTime dateadded) public Book(Guid urlid, DateTime dateadded)
{ {
this.UrlId = urlid; this.UrlId = urlid;
this.BookMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.BookMetadata>(); this.BookMetadata = new HashSet<BookMetadata>();
this.Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>(); this.Releases = new HashSet<Release>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Book Create(Guid urlid, DateTime dateadded) public static Book Create(Guid urlid, DateTime dateadded)
{ {
return new Book(urlid, dateadded); return new Book(urlid, dateadded);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.BookMetadata> BookMetadata { get; protected set; } [ForeignKey("BookMetadata_BookMetadata_Id")]
public virtual ICollection<BookMetadata> BookMetadata { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Release> Releases { get; protected set; } [ForeignKey("Release_Releases_Id")]
public virtual ICollection<Release> Releases { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,103 +9,104 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class BookMetadata: global::Jellyfin.Data.Entities.Metadata public partial class BookMetadata : Metadata
{ {
partial void Init(); partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected BookMetadata(): base() protected BookMetadata() : base()
{ {
Publishers = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>(); Publishers = new HashSet<Company>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static BookMetadata CreateBookMetadataUnsafe() public static BookMetadata CreateBookMetadataUnsafe()
{ {
return new BookMetadata(); return new BookMetadata();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_book0"></param> /// <param name="_book0"></param>
public BookMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Book _book0) public BookMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Book _book0)
{ {
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title; this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language)); if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; this.Language = language;
if (_book0 == null) throw new ArgumentNullException(nameof(_book0)); if (_book0 == null) throw new ArgumentNullException(nameof(_book0));
_book0.BookMetadata.Add(this); _book0.BookMetadata.Add(this);
this.Publishers = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>(); this.Publishers = new HashSet<Company>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_book0"></param> /// <param name="_book0"></param>
public static BookMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Book _book0) public static BookMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Book _book0)
{ {
return new BookMetadata(title, language, dateadded, datemodified, _book0); return new BookMetadata(title, language, dateadded, datemodified, _book0);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/// <summary> /// <summary>
/// Backing field for ISBN /// Backing field for ISBN
/// </summary> /// </summary>
protected long? _ISBN; protected long? _ISBN;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of ISBN to be changed before setting. /// When provided in a partial class, allows value of ISBN to be changed before setting.
/// </summary> /// </summary>
partial void SetISBN(long? oldValue, ref long? newValue); partial void SetISBN(long? oldValue, ref long? newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of ISBN to be changed before returning. /// When provided in a partial class, allows value of ISBN to be changed before returning.
/// </summary> /// </summary>
partial void GetISBN(ref long? result); partial void GetISBN(ref long? result);
public long? ISBN public long? ISBN
{ {
get get
{ {
long? value = _ISBN; long? value = _ISBN;
GetISBN(ref value); GetISBN(ref value);
return (_ISBN = value); return (_ISBN = value);
} }
set set
{
long? oldValue = _ISBN;
SetISBN(oldValue, ref value);
if (oldValue != value)
{ {
_ISBN = value; long? oldValue = _ISBN;
SetISBN(oldValue, ref value);
if (oldValue != value)
{
_ISBN = value;
}
} }
} }
}
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.Company> Publishers { get; protected set; } [ForeignKey("Company_Publishers_Id")]
public virtual ICollection<Company> Publishers { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,254 +9,261 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Chapter [Table("Chapter")]
{ public partial class Chapter
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected Chapter() protected Chapter()
{ {
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static Chapter CreateChapterUnsafe() public static Chapter CreateChapterUnsafe()
{ {
return new Chapter(); return new Chapter();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="timestart"></param> /// <param name="timestart"></param>
/// <param name="_release0"></param> /// <param name="_release0"></param>
public Chapter(string language, long timestart, global::Jellyfin.Data.Entities.Release _release0) public Chapter(string language, long timestart, Release _release0)
{ {
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language)); if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; this.Language = language;
this.TimeStart = timestart; this.TimeStart = timestart;
if (_release0 == null) throw new ArgumentNullException(nameof(_release0)); if (_release0 == null) throw new ArgumentNullException(nameof(_release0));
_release0.Chapters.Add(this); _release0.Chapters.Add(this);
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="timestart"></param> /// <param name="timestart"></param>
/// <param name="_release0"></param> /// <param name="_release0"></param>
public static Chapter Create(string language, long timestart, global::Jellyfin.Data.Entities.Release _release0) public static Chapter Create(string language, long timestart, Release _release0)
{ {
return new Chapter(language, timestart, _release0); return new Chapter(language, timestart, _release0);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/// <summary> /// <summary>
/// Backing field for Id /// Backing field for Id
/// </summary> /// </summary>
internal int _Id; internal int _Id;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Id to be changed before setting. /// When provided in a partial class, allows value of Id to be changed before setting.
/// </summary> /// </summary>
partial void SetId(int oldValue, ref int newValue); partial void SetId(int oldValue, ref int newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Id to be changed before returning. /// When provided in a partial class, allows value of Id to be changed before returning.
/// </summary> /// </summary>
partial void GetId(ref int result); partial void GetId(ref int result);
/// <summary> /// <summary>
/// Identity, Indexed, Required /// Identity, Indexed, Required
/// </summary> /// </summary>
[Key] [Key]
[Required] [Required]
public int Id [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
{ public int Id
get {
{ get
int value = _Id; {
GetId(ref value); int value = _Id;
return (_Id = value); GetId(ref value);
} return (_Id = value);
protected set }
{ protected set
int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for Name /// Backing field for Name
/// </summary> /// </summary>
protected string _Name; protected string _Name;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Name to be changed before setting. /// When provided in a partial class, allows value of Name to be changed before setting.
/// </summary> /// </summary>
partial void SetName(string oldValue, ref string newValue); partial void SetName(string oldValue, ref string newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Name to be changed before returning. /// When provided in a partial class, allows value of Name to be changed before returning.
/// </summary> /// </summary>
partial void GetName(ref string result); partial void GetName(ref string result);
/// <summary> /// <summary>
/// Max length = 1024 /// Max length = 1024
/// </summary> /// </summary>
[MaxLength(1024)] [MaxLength(1024)]
[StringLength(1024)] [StringLength(1024)]
public string Name public string Name
{ {
get get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; string value = _Name;
GetName(ref value);
return (_Name = value);
} }
} set
} {
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
}
}
/// <summary> /// <summary>
/// Backing field for Language /// Backing field for Language
/// </summary> /// </summary>
protected string _Language; protected string _Language;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Language to be changed before setting. /// When provided in a partial class, allows value of Language to be changed before setting.
/// </summary> /// </summary>
partial void SetLanguage(string oldValue, ref string newValue); partial void SetLanguage(string oldValue, ref string newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Language to be changed before returning. /// When provided in a partial class, allows value of Language to be changed before returning.
/// </summary> /// </summary>
partial void GetLanguage(ref string result); partial void GetLanguage(ref string result);
/// <summary> /// <summary>
/// Required, Min length = 3, Max length = 3 /// Required, Min length = 3, Max length = 3
/// ISO-639-3 3-character language codes /// ISO-639-3 3-character language codes
/// </summary> /// </summary>
[Required] [Required]
[MinLength(3)] [MinLength(3)]
[MaxLength(3)] [MaxLength(3)]
[StringLength(3)] [StringLength(3)]
public string Language public string Language
{ {
get get
{ {
string value = _Language; string value = _Language;
GetLanguage(ref value); GetLanguage(ref value);
return (_Language = value); return (_Language = value);
} }
set set
{
string oldValue = _Language;
SetLanguage(oldValue, ref value);
if (oldValue != value)
{ {
_Language = value; string oldValue = _Language;
SetLanguage(oldValue, ref value);
if (oldValue != value)
{
_Language = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for TimeStart /// Backing field for TimeStart
/// </summary> /// </summary>
protected long _TimeStart; protected long _TimeStart;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of TimeStart to be changed before setting. /// When provided in a partial class, allows value of TimeStart to be changed before setting.
/// </summary> /// </summary>
partial void SetTimeStart(long oldValue, ref long newValue); partial void SetTimeStart(long oldValue, ref long newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of TimeStart to be changed before returning. /// When provided in a partial class, allows value of TimeStart to be changed before returning.
/// </summary> /// </summary>
partial void GetTimeStart(ref long result); partial void GetTimeStart(ref long result);
/// <summary> /// <summary>
/// Required /// Required
/// </summary> /// </summary>
[Required] [Required]
public long TimeStart public long TimeStart
{ {
get get
{ {
long value = _TimeStart; long value = _TimeStart;
GetTimeStart(ref value); GetTimeStart(ref value);
return (_TimeStart = value); return (_TimeStart = value);
} }
set set
{
long oldValue = _TimeStart;
SetTimeStart(oldValue, ref value);
if (oldValue != value)
{ {
_TimeStart = value; long oldValue = _TimeStart;
SetTimeStart(oldValue, ref value);
if (oldValue != value)
{
_TimeStart = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for TimeEnd /// Backing field for TimeEnd
/// </summary> /// </summary>
protected long? _TimeEnd; protected long? _TimeEnd;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of TimeEnd to be changed before setting. /// When provided in a partial class, allows value of TimeEnd to be changed before setting.
/// </summary> /// </summary>
partial void SetTimeEnd(long? oldValue, ref long? newValue); partial void SetTimeEnd(long? oldValue, ref long? newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of TimeEnd to be changed before returning. /// When provided in a partial class, allows value of TimeEnd to be changed before returning.
/// </summary> /// </summary>
partial void GetTimeEnd(ref long? result); partial void GetTimeEnd(ref long? result);
public long? TimeEnd public long? TimeEnd
{ {
get get
{
long? value = _TimeEnd;
GetTimeEnd(ref value);
return (_TimeEnd = value);
}
set
{
long? oldValue = _TimeEnd;
SetTimeEnd(oldValue, ref value);
if (oldValue != value)
{ {
_TimeEnd = value; long? value = _TimeEnd;
GetTimeEnd(ref value);
return (_TimeEnd = value);
} }
} set
} {
long? oldValue = _TimeEnd;
SetTimeEnd(oldValue, ref value);
if (oldValue != value)
{
_TimeEnd = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,111 +9,118 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Collection [Table("Collection")]
{ public partial class Collection
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor /// Default constructor
/// </summary> /// </summary>
public Collection() public Collection()
{ {
CollectionItem = new System.Collections.Generic.LinkedList<global::Jellyfin.Data.Entities.CollectionItem>(); CollectionItem = new LinkedList<CollectionItem>();
Init(); Init();
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/// <summary> /// <summary>
/// Backing field for Id /// Backing field for Id
/// </summary> /// </summary>
internal int _Id; internal int _Id;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Id to be changed before setting. /// When provided in a partial class, allows value of Id to be changed before setting.
/// </summary> /// </summary>
partial void SetId(int oldValue, ref int newValue); partial void SetId(int oldValue, ref int newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Id to be changed before returning. /// When provided in a partial class, allows value of Id to be changed before returning.
/// </summary> /// </summary>
partial void GetId(ref int result); partial void GetId(ref int result);
/// <summary> /// <summary>
/// Identity, Indexed, Required /// Identity, Indexed, Required
/// </summary> /// </summary>
[Key] [Key]
[Required] [Required]
public int Id [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
{ public int Id
get {
{ get
int value = _Id; {
GetId(ref value); int value = _Id;
return (_Id = value); GetId(ref value);
} return (_Id = value);
protected set }
{ protected set
int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for Name /// Backing field for Name
/// </summary> /// </summary>
protected string _Name; protected string _Name;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Name to be changed before setting. /// When provided in a partial class, allows value of Name to be changed before setting.
/// </summary> /// </summary>
partial void SetName(string oldValue, ref string newValue); partial void SetName(string oldValue, ref string newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Name to be changed before returning. /// When provided in a partial class, allows value of Name to be changed before returning.
/// </summary> /// </summary>
partial void GetName(ref string result); partial void GetName(ref string result);
/// <summary> /// <summary>
/// Max length = 1024 /// Max length = 1024
/// </summary> /// </summary>
[MaxLength(1024)] [MaxLength(1024)]
[StringLength(1024)] [StringLength(1024)]
public string Name public string Name
{ {
get get
{ {
string value = _Name; string value = _Name;
GetName(ref value); GetName(ref value);
return (_Name = value); return (_Name = value);
} }
set set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Required /// Required, ConcurrenyToken
/// </summary> /// </summary>
[ConcurrencyCheck] [ConcurrencyCheck]
[Required] [Required]
public byte[] Timestamp { get; set; } public uint RowVersion { get; set; }
/************************************************************************* public void OnSavingChanges()
* Navigation properties {
*************************************************************************/ RowVersion++;
}
public virtual ICollection<global::Jellyfin.Data.Entities.CollectionItem> CollectionItem { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("CollectionItem_CollectionItem_Id")]
public virtual ICollection<CollectionItem> CollectionItem { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,131 +9,141 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class CollectionItem [Table("CollectionItem")]
{ public partial class CollectionItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected CollectionItem() /// </summary>
{ protected CollectionItem()
// NOTE: This class has one-to-one associations with CollectionItem. {
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. // NOTE: This class has one-to-one associations with CollectionItem.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static CollectionItem CreateCollectionItemUnsafe() /// </summary>
{ public static CollectionItem CreateCollectionItemUnsafe()
return new CollectionItem(); {
} return new CollectionItem();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="_collection0"></param> /// </summary>
/// <param name="_collectionitem1"></param> /// <param name="_collection0"></param>
/// <param name="_collectionitem2"></param> /// <param name="_collectionitem1"></param>
public CollectionItem(global::Jellyfin.Data.Entities.Collection _collection0, global::Jellyfin.Data.Entities.CollectionItem _collectionitem1, global::Jellyfin.Data.Entities.CollectionItem _collectionitem2) /// <param name="_collectionitem2"></param>
{ public CollectionItem(Collection _collection0, CollectionItem _collectionitem1, CollectionItem _collectionitem2)
// NOTE: This class has one-to-one associations with CollectionItem. {
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. // NOTE: This class has one-to-one associations with CollectionItem.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
if (_collection0 == null) throw new ArgumentNullException(nameof(_collection0));
_collection0.CollectionItem.Add(this); if (_collection0 == null) throw new ArgumentNullException(nameof(_collection0));
_collection0.CollectionItem.Add(this);
if (_collectionitem1 == null) throw new ArgumentNullException(nameof(_collectionitem1));
_collectionitem1.Next = this; if (_collectionitem1 == null) throw new ArgumentNullException(nameof(_collectionitem1));
_collectionitem1.Next = this;
if (_collectionitem2 == null) throw new ArgumentNullException(nameof(_collectionitem2));
_collectionitem2.Previous = this; if (_collectionitem2 == null) throw new ArgumentNullException(nameof(_collectionitem2));
_collectionitem2.Previous = this;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="_collection0"></param> /// </summary>
/// <param name="_collectionitem1"></param> /// <param name="_collection0"></param>
/// <param name="_collectionitem2"></param> /// <param name="_collectionitem1"></param>
public static CollectionItem Create(global::Jellyfin.Data.Entities.Collection _collection0, global::Jellyfin.Data.Entities.CollectionItem _collectionitem1, global::Jellyfin.Data.Entities.CollectionItem _collectionitem2) /// <param name="_collectionitem2"></param>
{ public static CollectionItem Create(Collection _collection0, CollectionItem _collectionitem1, CollectionItem _collectionitem2)
return new CollectionItem(_collection0, _collectionitem1, _collectionitem2); {
} return new CollectionItem(_collection0, _collectionitem1, _collectionitem2);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Required, ConcurrenyToken
/// Required /// </summary>
/// </summary> [ConcurrencyCheck]
[ConcurrencyCheck] [Required]
[Required] public uint RowVersion { get; set; }
public byte[] Timestamp { get; set; }
public void OnSavingChanges()
/************************************************************************* {
* Navigation properties RowVersion++;
*************************************************************************/ }
/// <summary> /*************************************************************************
/// Required * Navigation properties
/// </summary> *************************************************************************/
public virtual global::Jellyfin.Data.Entities.LibraryItem LibraryItem { get; set; }
/// <summary>
/// <remarks> /// Required
/// TODO check if this properly updated dependant and has the proper principal relationship /// </summary>
/// </remarks> [ForeignKey("LibraryItem_Id")]
public virtual global::Jellyfin.Data.Entities.CollectionItem Next { get; set; } public virtual LibraryItem LibraryItem { get; set; }
/// <remarks> /// <remarks>
/// TODO check if this properly updated dependant and has the proper principal relationship /// TODO check if this properly updated dependant and has the proper principal relationship
/// </remarks> /// </remarks>
public virtual global::Jellyfin.Data.Entities.CollectionItem Previous { get; set; } [ForeignKey("CollectionItem_Next_Id")]
public virtual CollectionItem Next { get; set; }
}
/// <remarks>
/// TODO check if this properly updated dependant and has the proper principal relationship
/// </remarks>
[ForeignKey("CollectionItem_Previous_Id")]
public virtual CollectionItem Previous { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,127 +9,134 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Company [Table("Company")]
{ public partial class Company
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Company() /// </summary>
{ protected Company()
CompanyMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.CompanyMetadata>(); {
CompanyMetadata = new HashSet<CompanyMetadata>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Company CreateCompanyUnsafe() /// </summary>
{ public static Company CreateCompanyUnsafe()
return new Company(); {
} return new Company();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="_moviemetadata0"></param> /// </summary>
/// <param name="_seriesmetadata1"></param> /// <param name="_moviemetadata0"></param>
/// <param name="_musicalbummetadata2"></param> /// <param name="_seriesmetadata1"></param>
/// <param name="_bookmetadata3"></param> /// <param name="_musicalbummetadata2"></param>
/// <param name="_company4"></param> /// <param name="_bookmetadata3"></param>
public Company(global::Jellyfin.Data.Entities.MovieMetadata _moviemetadata0, global::Jellyfin.Data.Entities.SeriesMetadata _seriesmetadata1, global::Jellyfin.Data.Entities.MusicAlbumMetadata _musicalbummetadata2, global::Jellyfin.Data.Entities.BookMetadata _bookmetadata3, global::Jellyfin.Data.Entities.Company _company4) /// <param name="_company4"></param>
{ public Company(MovieMetadata _moviemetadata0, SeriesMetadata _seriesmetadata1, MusicAlbumMetadata _musicalbummetadata2, BookMetadata _bookmetadata3, Company _company4)
if (_moviemetadata0 == null) throw new ArgumentNullException(nameof(_moviemetadata0)); {
_moviemetadata0.Studios.Add(this); if (_moviemetadata0 == null) throw new ArgumentNullException(nameof(_moviemetadata0));
_moviemetadata0.Studios.Add(this);
if (_seriesmetadata1 == null) throw new ArgumentNullException(nameof(_seriesmetadata1));
_seriesmetadata1.Networks.Add(this); if (_seriesmetadata1 == null) throw new ArgumentNullException(nameof(_seriesmetadata1));
_seriesmetadata1.Networks.Add(this);
if (_musicalbummetadata2 == null) throw new ArgumentNullException(nameof(_musicalbummetadata2));
_musicalbummetadata2.Labels.Add(this); if (_musicalbummetadata2 == null) throw new ArgumentNullException(nameof(_musicalbummetadata2));
_musicalbummetadata2.Labels.Add(this);
if (_bookmetadata3 == null) throw new ArgumentNullException(nameof(_bookmetadata3));
_bookmetadata3.Publishers.Add(this); if (_bookmetadata3 == null) throw new ArgumentNullException(nameof(_bookmetadata3));
_bookmetadata3.Publishers.Add(this);
if (_company4 == null) throw new ArgumentNullException(nameof(_company4));
_company4.Parent = this; if (_company4 == null) throw new ArgumentNullException(nameof(_company4));
_company4.Parent = this;
this.CompanyMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.CompanyMetadata>();
this.CompanyMetadata = new HashSet<CompanyMetadata>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="_moviemetadata0"></param> /// </summary>
/// <param name="_seriesmetadata1"></param> /// <param name="_moviemetadata0"></param>
/// <param name="_musicalbummetadata2"></param> /// <param name="_seriesmetadata1"></param>
/// <param name="_bookmetadata3"></param> /// <param name="_musicalbummetadata2"></param>
/// <param name="_company4"></param> /// <param name="_bookmetadata3"></param>
public static Company Create(global::Jellyfin.Data.Entities.MovieMetadata _moviemetadata0, global::Jellyfin.Data.Entities.SeriesMetadata _seriesmetadata1, global::Jellyfin.Data.Entities.MusicAlbumMetadata _musicalbummetadata2, global::Jellyfin.Data.Entities.BookMetadata _bookmetadata3, global::Jellyfin.Data.Entities.Company _company4) /// <param name="_company4"></param>
{ public static Company Create(MovieMetadata _moviemetadata0, SeriesMetadata _seriesmetadata1, MusicAlbumMetadata _musicalbummetadata2, BookMetadata _bookmetadata3, Company _company4)
return new Company(_moviemetadata0, _seriesmetadata1, _musicalbummetadata2, _bookmetadata3, _company4); {
} return new Company(_moviemetadata0, _seriesmetadata1, _musicalbummetadata2, _bookmetadata3, _company4);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value);
return (_Id = value);
}
protected set
{
int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int value = _Id;
GetId(ref value);
return (_Id = value);
} }
} protected set
} {
int oldValue = _Id;
/// <summary> SetId(oldValue, ref value);
/// Required if (oldValue != value)
/// </summary> {
[ConcurrencyCheck] _Id = value;
[Required] }
public byte[] Timestamp { get; set; } }
}
/*************************************************************************
* Navigation properties /// <summary>
*************************************************************************/ /// Required, ConcurrenyToken
/// </summary>
public virtual ICollection<global::Jellyfin.Data.Entities.CompanyMetadata> CompanyMetadata { get; protected set; } [ConcurrencyCheck]
[Required]
public virtual global::Jellyfin.Data.Entities.Company Parent { get; set; } public uint RowVersion { get; set; }
} public void OnSavingChanges()
{
RowVersion++;
}
/*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("CompanyMetadata_CompanyMetadata_Id")]
public virtual ICollection<CompanyMetadata> CompanyMetadata { get; protected set; }
[ForeignKey("Company_Parent_Id")]
public virtual Company Parent { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,214 +9,215 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class CompanyMetadata: global::Jellyfin.Data.Entities.Metadata [Table("CompanyMetadata")]
{ public partial class CompanyMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected CompanyMetadata(): base() /// </summary>
{ protected CompanyMetadata() : base()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static CompanyMetadata CreateCompanyMetadataUnsafe() /// </summary>
{ public static CompanyMetadata CreateCompanyMetadataUnsafe()
return new CompanyMetadata(); {
} return new CompanyMetadata();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_company0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public CompanyMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Company _company0) /// <param name="_company0"></param>
{ public CompanyMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Company _company0)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
if (_company0 == null) throw new ArgumentNullException(nameof(_company0));
_company0.CompanyMetadata.Add(this); if (_company0 == null) throw new ArgumentNullException(nameof(_company0));
_company0.CompanyMetadata.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_company0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public static CompanyMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Company _company0) /// <param name="_company0"></param>
{ public static CompanyMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Company _company0)
return new CompanyMetadata(title, language, dateadded, datemodified, _company0); {
} return new CompanyMetadata(title, language, dateadded, datemodified, _company0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Description /// <summary>
/// </summary> /// Backing field for Description
protected string _Description; /// </summary>
/// <summary> protected string _Description;
/// When provided in a partial class, allows value of Description to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Description to be changed before setting.
partial void SetDescription(string oldValue, ref string newValue); /// </summary>
/// <summary> partial void SetDescription(string oldValue, ref string newValue);
/// When provided in a partial class, allows value of Description to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Description to be changed before returning.
partial void GetDescription(ref string result); /// </summary>
partial void GetDescription(ref string result);
/// <summary>
/// Max length = 65535 /// <summary>
/// </summary> /// Max length = 65535
[MaxLength(65535)] /// </summary>
[StringLength(65535)] [MaxLength(65535)]
public string Description [StringLength(65535)]
{ public string Description
get {
{ get
string value = _Description; {
GetDescription(ref value); string value = _Description;
return (_Description = value); GetDescription(ref value);
} return (_Description = value);
set }
{ set
string oldValue = _Description; {
SetDescription(oldValue, ref value); string oldValue = _Description;
if (oldValue != value) SetDescription(oldValue, ref value);
if (oldValue != value)
{
_Description = value;
}
}
}
/// <summary>
/// Backing field for Headquarters
/// </summary>
protected string _Headquarters;
/// <summary>
/// When provided in a partial class, allows value of Headquarters to be changed before setting.
/// </summary>
partial void SetHeadquarters(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Headquarters to be changed before returning.
/// </summary>
partial void GetHeadquarters(ref string result);
/// <summary>
/// Max length = 255
/// </summary>
[MaxLength(255)]
[StringLength(255)]
public string Headquarters
{
get
{
string value = _Headquarters;
GetHeadquarters(ref value);
return (_Headquarters = value);
}
set
{
string oldValue = _Headquarters;
SetHeadquarters(oldValue, ref value);
if (oldValue != value)
{
_Headquarters = value;
}
}
}
/// <summary>
/// Backing field for Country
/// </summary>
protected string _Country;
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before setting.
/// </summary>
partial void SetCountry(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before returning.
/// </summary>
partial void GetCountry(ref string result);
/// <summary>
/// Max length = 2
/// </summary>
[MaxLength(2)]
[StringLength(2)]
public string Country
{
get
{ {
_Description = value; string value = _Country;
GetCountry(ref value);
return (_Country = value);
} }
} set
}
/// <summary>
/// Backing field for Headquarters
/// </summary>
protected string _Headquarters;
/// <summary>
/// When provided in a partial class, allows value of Headquarters to be changed before setting.
/// </summary>
partial void SetHeadquarters(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Headquarters to be changed before returning.
/// </summary>
partial void GetHeadquarters(ref string result);
/// <summary>
/// Max length = 255
/// </summary>
[MaxLength(255)]
[StringLength(255)]
public string Headquarters
{
get
{
string value = _Headquarters;
GetHeadquarters(ref value);
return (_Headquarters = value);
}
set
{
string oldValue = _Headquarters;
SetHeadquarters(oldValue, ref value);
if (oldValue != value)
{ {
_Headquarters = value; string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{
_Country = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Homepage
/// Backing field for Country /// </summary>
/// </summary> protected string _Homepage;
protected string _Country; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Homepage to be changed before setting.
/// When provided in a partial class, allows value of Country to be changed before setting. /// </summary>
/// </summary> partial void SetHomepage(string oldValue, ref string newValue);
partial void SetCountry(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Homepage to be changed before returning.
/// When provided in a partial class, allows value of Country to be changed before returning. /// </summary>
/// </summary> partial void GetHomepage(ref string result);
partial void GetCountry(ref string result);
/// <summary>
/// <summary> /// Max length = 1024
/// Max length = 2 /// </summary>
/// </summary> [MaxLength(1024)]
[MaxLength(2)] [StringLength(1024)]
[StringLength(2)] public string Homepage
public string Country {
{ get
get
{
string value = _Country;
GetCountry(ref value);
return (_Country = value);
}
set
{
string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{ {
_Country = value; string value = _Homepage;
GetHomepage(ref value);
return (_Homepage = value);
} }
} set
}
/// <summary>
/// Backing field for Homepage
/// </summary>
protected string _Homepage;
/// <summary>
/// When provided in a partial class, allows value of Homepage to be changed before setting.
/// </summary>
partial void SetHomepage(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Homepage to be changed before returning.
/// </summary>
partial void GetHomepage(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Homepage
{
get
{
string value = _Homepage;
GetHomepage(ref value);
return (_Homepage = value);
}
set
{
string oldValue = _Homepage;
SetHomepage(oldValue, ref value);
if (oldValue != value)
{ {
_Homepage = value; string oldValue = _Homepage;
SetHomepage(oldValue, ref value);
if (oldValue != value)
{
_Homepage = value;
}
} }
} }
}
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,64 +9,65 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class CustomItem: global::Jellyfin.Data.Entities.LibraryItem public partial class CustomItem : LibraryItem
{ {
partial void Init(); partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
protected CustomItem(): base()
{
CustomItemMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.CustomItemMetadata>();
Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>();
Init(); /// <summary>
} /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
protected CustomItem() : base()
{
CustomItemMetadata = new HashSet<CustomItemMetadata>();
Releases = new HashSet<Release>();
/// <summary> Init();
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. }
/// </summary>
public static CustomItem CreateCustomItemUnsafe()
{
return new CustomItem();
}
/// <summary> /// <summary>
/// Public constructor with required data /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> public static CustomItem CreateCustomItemUnsafe()
public CustomItem(Guid urlid, DateTime dateadded) {
{ return new CustomItem();
this.UrlId = urlid; }
this.CustomItemMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.CustomItemMetadata>(); /// <summary>
this.Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>(); /// Public constructor with required data
/// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public CustomItem(Guid urlid, DateTime dateadded)
{
this.UrlId = urlid;
Init(); this.CustomItemMetadata = new HashSet<CustomItemMetadata>();
} this.Releases = new HashSet<Release>();
/// <summary> Init();
/// Static create function (for use in LINQ queries, etc.) }
/// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static CustomItem Create(Guid urlid, DateTime dateadded)
{
return new CustomItem(urlid, dateadded);
}
/************************************************************************* /// <summary>
* Properties /// Static create function (for use in LINQ queries, etc.)
*************************************************************************/ /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static CustomItem Create(Guid urlid, DateTime dateadded)
{
return new CustomItem(urlid, dateadded);
}
/************************************************************************* /*************************************************************************
* Navigation properties * Properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.CustomItemMetadata> CustomItemMetadata { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("CustomItemMetadata_CustomItemMetadata_Id")]
public virtual ICollection<CustomItemMetadata> CustomItemMetadata { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Release> Releases { get; protected set; } [ForeignKey("Release_Releases_Id")]
public virtual ICollection<Release> Releases { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,66 +9,67 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class CustomItemMetadata: global::Jellyfin.Data.Entities.Metadata [Table("CustomItemMetadata")]
{ public partial class CustomItemMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected CustomItemMetadata(): base() protected CustomItemMetadata() : base()
{ {
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static CustomItemMetadata CreateCustomItemMetadataUnsafe() public static CustomItemMetadata CreateCustomItemMetadataUnsafe()
{ {
return new CustomItemMetadata(); return new CustomItemMetadata();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_customitem0"></param> /// <param name="_customitem0"></param>
public CustomItemMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.CustomItem _customitem0) public CustomItemMetadata(string title, string language, DateTime dateadded, DateTime datemodified, CustomItem _customitem0)
{ {
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title; this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language)); if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; this.Language = language;
if (_customitem0 == null) throw new ArgumentNullException(nameof(_customitem0)); if (_customitem0 == null) throw new ArgumentNullException(nameof(_customitem0));
_customitem0.CustomItemMetadata.Add(this); _customitem0.CustomItemMetadata.Add(this);
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_customitem0"></param> /// <param name="_customitem0"></param>
public static CustomItemMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.CustomItem _customitem0) public static CustomItemMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, CustomItem _customitem0)
{ {
return new CustomItemMetadata(title, language, dateadded, datemodified, _customitem0); return new CustomItemMetadata(title, language, dateadded, datemodified, _customitem0);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,107 +9,108 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Episode: global::Jellyfin.Data.Entities.LibraryItem [Table("Episode")]
{ public partial class Episode : LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Episode(): base() /// </summary>
{ protected Episode() : base()
// 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. // 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.
Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>();
EpisodeMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.EpisodeMetadata>(); Releases = new HashSet<Release>();
EpisodeMetadata = new HashSet<EpisodeMetadata>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Episode CreateEpisodeUnsafe() /// </summary>
{ public static Episode CreateEpisodeUnsafe()
return new Episode(); {
} return new Episode();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
/// <param name="_season0"></param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public Episode(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.Season _season0) /// <param name="_season0"></param>
{ public Episode(Guid urlid, DateTime dateadded, Season _season0)
// 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. // 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.
this.UrlId = urlid;
this.UrlId = urlid;
if (_season0 == null) throw new ArgumentNullException(nameof(_season0));
_season0.Episodes.Add(this); if (_season0 == null) throw new ArgumentNullException(nameof(_season0));
_season0.Episodes.Add(this);
this.Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>();
this.EpisodeMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.EpisodeMetadata>(); this.Releases = new HashSet<Release>();
this.EpisodeMetadata = new HashSet<EpisodeMetadata>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
/// <param name="_season0"></param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Episode Create(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.Season _season0) /// <param name="_season0"></param>
{ public static Episode Create(Guid urlid, DateTime dateadded, Season _season0)
return new Episode(urlid, dateadded, _season0); {
} return new Episode(urlid, dateadded, _season0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for EpisodeNumber /// <summary>
/// </summary> /// Backing field for EpisodeNumber
protected int? _EpisodeNumber; /// </summary>
/// <summary> protected int? _EpisodeNumber;
/// When provided in a partial class, allows value of EpisodeNumber to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of EpisodeNumber to be changed before setting.
partial void SetEpisodeNumber(int? oldValue, ref int? newValue); /// </summary>
/// <summary> partial void SetEpisodeNumber(int? oldValue, ref int? newValue);
/// When provided in a partial class, allows value of EpisodeNumber to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of EpisodeNumber to be changed before returning.
partial void GetEpisodeNumber(ref int? result); /// </summary>
partial void GetEpisodeNumber(ref int? result);
public int? EpisodeNumber
{ public int? EpisodeNumber
get {
{ get
int? value = _EpisodeNumber;
GetEpisodeNumber(ref value);
return (_EpisodeNumber = value);
}
set
{
int? oldValue = _EpisodeNumber;
SetEpisodeNumber(oldValue, ref value);
if (oldValue != value)
{ {
_EpisodeNumber = value; int? value = _EpisodeNumber;
GetEpisodeNumber(ref value);
return (_EpisodeNumber = value);
} }
} set
} {
int? oldValue = _EpisodeNumber;
/************************************************************************* SetEpisodeNumber(oldValue, ref value);
* Navigation properties if (oldValue != value)
*************************************************************************/ {
_EpisodeNumber = value;
public virtual ICollection<global::Jellyfin.Data.Entities.Release> Releases { get; protected set; } }
}
}
public virtual ICollection<global::Jellyfin.Data.Entities.EpisodeMetadata> EpisodeMetadata { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("Release_Releases_Id")]
public virtual ICollection<Release> Releases { get; protected set; }
[ForeignKey("EpisodeMetadata_EpisodeMetadata_Id")]
public virtual ICollection<EpisodeMetadata> EpisodeMetadata { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,177 +9,178 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class EpisodeMetadata: global::Jellyfin.Data.Entities.Metadata [Table("EpisodeMetadata")]
{ public partial class EpisodeMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected EpisodeMetadata(): base() /// </summary>
{ protected EpisodeMetadata() : base()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static EpisodeMetadata CreateEpisodeMetadataUnsafe() /// </summary>
{ public static EpisodeMetadata CreateEpisodeMetadataUnsafe()
return new EpisodeMetadata(); {
} return new EpisodeMetadata();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_episode0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public EpisodeMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Episode _episode0) /// <param name="_episode0"></param>
{ public EpisodeMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Episode _episode0)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
if (_episode0 == null) throw new ArgumentNullException(nameof(_episode0));
_episode0.EpisodeMetadata.Add(this); if (_episode0 == null) throw new ArgumentNullException(nameof(_episode0));
_episode0.EpisodeMetadata.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_episode0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public static EpisodeMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Episode _episode0) /// <param name="_episode0"></param>
{ public static EpisodeMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Episode _episode0)
return new EpisodeMetadata(title, language, dateadded, datemodified, _episode0); {
} return new EpisodeMetadata(title, language, dateadded, datemodified, _episode0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Outline /// <summary>
/// </summary> /// Backing field for Outline
protected string _Outline; /// </summary>
/// <summary> protected string _Outline;
/// When provided in a partial class, allows value of Outline to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before setting.
partial void SetOutline(string oldValue, ref string newValue); /// </summary>
/// <summary> partial void SetOutline(string oldValue, ref string newValue);
/// When provided in a partial class, allows value of Outline to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before returning.
partial void GetOutline(ref string result); /// </summary>
partial void GetOutline(ref string result);
/// <summary>
/// Max length = 1024 /// <summary>
/// </summary> /// Max length = 1024
[MaxLength(1024)] /// </summary>
[StringLength(1024)] [MaxLength(1024)]
public string Outline [StringLength(1024)]
{ public string Outline
get {
{ get
string value = _Outline; {
GetOutline(ref value); string value = _Outline;
return (_Outline = value); GetOutline(ref value);
} return (_Outline = value);
set }
{ set
string oldValue = _Outline; {
SetOutline(oldValue, ref value); string oldValue = _Outline;
if (oldValue != value) SetOutline(oldValue, ref value);
if (oldValue != value)
{
_Outline = value;
}
}
}
/// <summary>
/// Backing field for Plot
/// </summary>
protected string _Plot;
/// <summary>
/// When provided in a partial class, allows value of Plot to be changed before setting.
/// </summary>
partial void SetPlot(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Plot to be changed before returning.
/// </summary>
partial void GetPlot(ref string result);
/// <summary>
/// Max length = 65535
/// </summary>
[MaxLength(65535)]
[StringLength(65535)]
public string Plot
{
get
{
string value = _Plot;
GetPlot(ref value);
return (_Plot = value);
}
set
{ {
_Outline = value; string oldValue = _Plot;
SetPlot(oldValue, ref value);
if (oldValue != value)
{
_Plot = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Tagline
/// Backing field for Plot /// </summary>
/// </summary> protected string _Tagline;
protected string _Plot; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Tagline to be changed before setting.
/// When provided in a partial class, allows value of Plot to be changed before setting. /// </summary>
/// </summary> partial void SetTagline(string oldValue, ref string newValue);
partial void SetPlot(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Tagline to be changed before returning.
/// When provided in a partial class, allows value of Plot to be changed before returning. /// </summary>
/// </summary> partial void GetTagline(ref string result);
partial void GetPlot(ref string result);
/// <summary>
/// <summary> /// Max length = 1024
/// Max length = 65535 /// </summary>
/// </summary> [MaxLength(1024)]
[MaxLength(65535)] [StringLength(1024)]
[StringLength(65535)] public string Tagline
public string Plot {
{ get
get
{
string value = _Plot;
GetPlot(ref value);
return (_Plot = value);
}
set
{
string oldValue = _Plot;
SetPlot(oldValue, ref value);
if (oldValue != value)
{ {
_Plot = value; string value = _Tagline;
GetTagline(ref value);
return (_Tagline = value);
} }
} set
}
/// <summary>
/// Backing field for Tagline
/// </summary>
protected string _Tagline;
/// <summary>
/// When provided in a partial class, allows value of Tagline to be changed before setting.
/// </summary>
partial void SetTagline(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Tagline to be changed before returning.
/// </summary>
partial void GetTagline(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Tagline
{
get
{
string value = _Tagline;
GetTagline(ref value);
return (_Tagline = value);
}
set
{
string oldValue = _Tagline;
SetTagline(oldValue, ref value);
if (oldValue != value)
{ {
_Tagline = value; string oldValue = _Tagline;
SetTagline(oldValue, ref value);
if (oldValue != value)
{
_Tagline = value;
}
} }
} }
}
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,143 +9,150 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Genre [Table("Genre")]
{ public partial class Genre
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Genre() /// </summary>
{ protected Genre()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Genre CreateGenreUnsafe() /// </summary>
{ public static Genre CreateGenreUnsafe()
return new Genre(); {
} return new Genre();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="name"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="name"></param>
public Genre(string name, global::Jellyfin.Data.Entities.Metadata _metadata0) /// <param name="_metadata0"></param>
{ public Genre(string name, Metadata _metadata0)
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); {
this.Name = name; if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
this.Name = name;
if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Genres.Add(this); if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Genres.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="name"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="name"></param>
public static Genre Create(string name, global::Jellyfin.Data.Entities.Metadata _metadata0) /// <param name="_metadata0"></param>
{ public static Genre Create(string name, Metadata _metadata0)
return new Genre(name, _metadata0); {
} return new Genre(name, _metadata0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Name
/// Backing field for Name /// </summary>
/// </summary> internal string _Name;
internal string _Name; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before setting.
/// When provided in a partial class, allows value of Name to be changed before setting. /// </summary>
/// </summary> partial void SetName(string oldValue, ref string newValue);
partial void SetName(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before returning.
/// When provided in a partial class, allows value of Name to be changed before returning. /// </summary>
/// </summary> partial void GetName(ref string result);
partial void GetName(ref string result);
/// <summary>
/// <summary> /// Indexed, Required, Max length = 255
/// Indexed, Required, Max length = 255 /// </summary>
/// </summary> [Required]
[Required] [MaxLength(255)]
[MaxLength(255)] [StringLength(255)]
[StringLength(255)] public string Name
public string Name {
{ get
get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; string value = _Name;
GetName(ref value);
return (_Name = value);
} }
} set
} {
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,95 +9,106 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Group [Table("Group")]
{ public partial class Group
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Group() /// </summary>
{ protected Group()
GroupPermissions = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Permission>(); {
ProviderMappings = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.ProviderMapping>(); GroupPermissions = new HashSet<Permission>();
Preferences = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Preference>(); ProviderMappings = new HashSet<ProviderMapping>();
Preferences = new HashSet<Preference>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Group CreateGroupUnsafe() /// </summary>
{ public static Group CreateGroupUnsafe()
return new Group(); {
} return new Group();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="name"></param> /// </summary>
/// <param name="_user0"></param> /// <param name="name"></param>
public Group(string name, global::Jellyfin.Data.Entities.User _user0) /// <param name="_user0"></param>
{ public Group(string name, User _user0)
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); {
this.Name = name; if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
this.Name = name;
if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.Groups.Add(this); if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.Groups.Add(this);
this.GroupPermissions = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Permission>();
this.ProviderMappings = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.ProviderMapping>(); this.GroupPermissions = new HashSet<Permission>();
this.Preferences = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Preference>(); this.ProviderMappings = new HashSet<ProviderMapping>();
this.Preferences = new HashSet<Preference>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="name"></param> /// </summary>
/// <param name="_user0"></param> /// <param name="name"></param>
public static Group Create(string name, global::Jellyfin.Data.Entities.User _user0) /// <param name="_user0"></param>
{ public static Group Create(string name, User _user0)
return new Group(name, _user0); {
} return new Group(name, _user0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id { get; protected set; } [Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
/// <summary> public int Id { get; protected set; }
/// Required, Max length = 255
/// </summary> /// <summary>
[Required] /// Required, Max length = 255
[MaxLength(255)] /// </summary>
[StringLength(255)] [Required]
public string Name { get; set; } [MaxLength(255)]
[StringLength(255)]
/// <summary> public string Name { get; set; }
/// Concurrency token
/// </summary> /// <summary>
[Timestamp] /// Required, ConcurrenyToken
public Byte[] Timestamp { get; set; } /// </summary>
[ConcurrencyCheck]
/************************************************************************* [Required]
* Navigation properties public uint RowVersion { get; set; }
*************************************************************************/
public void OnSavingChanges()
public virtual ICollection<global::Jellyfin.Data.Entities.Permission> GroupPermissions { get; protected set; } {
RowVersion++;
public virtual ICollection<global::Jellyfin.Data.Entities.ProviderMapping> ProviderMappings { get; protected set; } }
public virtual ICollection<global::Jellyfin.Data.Entities.Preference> Preferences { get; protected set; } /*************************************************************************
* Navigation properties
} *************************************************************************/
[ForeignKey("Permission_GroupPermissions_Id")]
public virtual ICollection<Permission> GroupPermissions { get; protected set; }
[ForeignKey("ProviderMapping_ProviderMappings_Id")]
public virtual ICollection<ProviderMapping> ProviderMappings { get; protected set; }
[ForeignKey("Preference_Preferences_Id")]
public virtual ICollection<Preference> Preferences { get; protected set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,138 +9,145 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Library [Table("Library")]
{ public partial class Library
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Library() /// </summary>
{ protected Library()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Library CreateLibraryUnsafe() /// </summary>
{ public static Library CreateLibraryUnsafe()
return new Library(); {
} return new Library();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="name"></param> /// </summary>
public Library(string name) /// <param name="name"></param>
{ public Library(string name)
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); {
this.Name = name; if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
this.Name = name;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="name"></param> /// </summary>
public static Library Create(string name) /// <param name="name"></param>
{ public static Library Create(string name)
return new Library(name); {
} return new Library(name);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Name
/// Backing field for Name /// </summary>
/// </summary> protected string _Name;
protected string _Name; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before setting.
/// When provided in a partial class, allows value of Name to be changed before setting. /// </summary>
/// </summary> partial void SetName(string oldValue, ref string newValue);
partial void SetName(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before returning.
/// When provided in a partial class, allows value of Name to be changed before returning. /// </summary>
/// </summary> partial void GetName(ref string result);
partial void GetName(ref string result);
/// <summary>
/// <summary> /// Required, Max length = 1024
/// Required, Max length = 1024 /// </summary>
/// </summary> [Required]
[Required] [MaxLength(1024)]
[MaxLength(1024)] [StringLength(1024)]
[StringLength(1024)] public string Name
public string Name {
{ get
get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; string value = _Name;
GetName(ref value);
return (_Name = value);
} }
} set
} {
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,160 +9,168 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public abstract partial class LibraryItem [Table("LibraryItem")]
{ public abstract partial class LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to being abstract. /// <summary>
/// </summary> /// Default constructor. Protected due to being abstract.
protected LibraryItem() /// </summary>
{ protected LibraryItem()
Init(); {
} Init();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
protected LibraryItem(Guid urlid, DateTime dateadded) /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
{ protected LibraryItem(Guid urlid, DateTime dateadded)
this.UrlId = urlid; {
this.UrlId = urlid;
Init();
} Init();
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for UrlId
/// </summary>
internal Guid _UrlId;
/// <summary>
/// When provided in a partial class, allows value of UrlId to be changed before setting.
/// </summary>
partial void SetUrlId(Guid oldValue, ref Guid newValue);
/// <summary>
/// When provided in a partial class, allows value of UrlId to be changed before returning.
/// </summary>
partial void GetUrlId(ref Guid result);
/// <summary>
/// Indexed, Required
/// This is whats gets displayed in the Urls and API requests. This could also be a string.
/// </summary>
[Required]
public Guid UrlId
{
get
{
Guid value = _UrlId;
GetUrlId(ref value);
return (_UrlId = value);
}
set
{ {
_Id = value; Guid oldValue = _UrlId;
SetUrlId(oldValue, ref value);
if (oldValue != value)
{
_UrlId = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for DateAdded
/// Backing field for UrlId /// </summary>
/// </summary> protected DateTime _DateAdded;
internal Guid _UrlId; /// <summary>
/// <summary> /// When provided in a partial class, allows value of DateAdded to be changed before setting.
/// When provided in a partial class, allows value of UrlId to be changed before setting. /// </summary>
/// </summary> partial void SetDateAdded(DateTime oldValue, ref DateTime newValue);
partial void SetUrlId(Guid oldValue, ref Guid newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of DateAdded to be changed before returning.
/// When provided in a partial class, allows value of UrlId to be changed before returning. /// </summary>
/// </summary> partial void GetDateAdded(ref DateTime result);
partial void GetUrlId(ref Guid result);
/// <summary>
/// <summary> /// Required
/// Indexed, Required /// </summary>
/// This is whats gets displayed in the Urls and API requests. This could also be a string. [Required]
/// </summary> public DateTime DateAdded
[Required] {
public Guid UrlId get
{
get
{
Guid value = _UrlId;
GetUrlId(ref value);
return (_UrlId = value);
}
set
{
Guid oldValue = _UrlId;
SetUrlId(oldValue, ref value);
if (oldValue != value)
{ {
_UrlId = value; DateTime value = _DateAdded;
GetDateAdded(ref value);
return (_DateAdded = value);
} }
} internal set
}
/// <summary>
/// Backing field for DateAdded
/// </summary>
protected DateTime _DateAdded;
/// <summary>
/// When provided in a partial class, allows value of DateAdded to be changed before setting.
/// </summary>
partial void SetDateAdded(DateTime oldValue, ref DateTime newValue);
/// <summary>
/// When provided in a partial class, allows value of DateAdded to be changed before returning.
/// </summary>
partial void GetDateAdded(ref DateTime result);
/// <summary>
/// Required
/// </summary>
[Required]
public DateTime DateAdded
{
get
{
DateTime value = _DateAdded;
GetDateAdded(ref value);
return (_DateAdded = value);
}
internal set
{
DateTime oldValue = _DateAdded;
SetDateAdded(oldValue, ref value);
if (oldValue != value)
{ {
_DateAdded = value; DateTime oldValue = _DateAdded;
SetDateAdded(oldValue, ref value);
if (oldValue != value)
{
_DateAdded = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Required, ConcurrenyToken
/// Required /// </summary>
/// </summary> [ConcurrencyCheck]
[ConcurrencyCheck] [Required]
[Required] public uint RowVersion { get; set; }
public byte[] Timestamp { get; set; }
public void OnSavingChanges()
/************************************************************************* {
* Navigation properties RowVersion++;
*************************************************************************/ }
/// <summary> /*************************************************************************
/// Required * Navigation properties
/// </summary> *************************************************************************/
public virtual global::Jellyfin.Data.Entities.LibraryRoot LibraryRoot { get; set; }
/// <summary>
} /// Required
/// </summary>
[ForeignKey("LibraryRoot_Id")]
public virtual LibraryRoot LibraryRoot { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,182 +9,190 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class LibraryRoot [Table("LibraryRoot")]
{ public partial class LibraryRoot
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected LibraryRoot() /// </summary>
{ protected LibraryRoot()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static LibraryRoot CreateLibraryRootUnsafe() /// </summary>
{ public static LibraryRoot CreateLibraryRootUnsafe()
return new LibraryRoot(); {
} return new LibraryRoot();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="path">Absolute Path</param> /// </summary>
public LibraryRoot(string path) /// <param name="path">Absolute Path</param>
{ public LibraryRoot(string path)
if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path)); {
this.Path = path; if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path));
this.Path = path;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="path">Absolute Path</param> /// </summary>
public static LibraryRoot Create(string path) /// <param name="path">Absolute Path</param>
{ public static LibraryRoot Create(string path)
return new LibraryRoot(path); {
} return new LibraryRoot(path);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for Path
/// </summary>
protected string _Path;
/// <summary>
/// When provided in a partial class, allows value of Path to be changed before setting.
/// </summary>
partial void SetPath(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Path to be changed before returning.
/// </summary>
partial void GetPath(ref string result);
/// <summary>
/// Required, Max length = 65535
/// Absolute Path
/// </summary>
[Required]
[MaxLength(65535)]
[StringLength(65535)]
public string Path
{
get
{
string value = _Path;
GetPath(ref value);
return (_Path = value);
}
set
{ {
_Id = value; string oldValue = _Path;
SetPath(oldValue, ref value);
if (oldValue != value)
{
_Path = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for NetworkPath
/// Backing field for Path /// </summary>
/// </summary> protected string _NetworkPath;
protected string _Path; /// <summary>
/// <summary> /// When provided in a partial class, allows value of NetworkPath to be changed before setting.
/// When provided in a partial class, allows value of Path to be changed before setting. /// </summary>
/// </summary> partial void SetNetworkPath(string oldValue, ref string newValue);
partial void SetPath(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of NetworkPath to be changed before returning.
/// When provided in a partial class, allows value of Path to be changed before returning. /// </summary>
/// </summary> partial void GetNetworkPath(ref string result);
partial void GetPath(ref string result);
/// <summary>
/// <summary> /// Max length = 65535
/// Required, Max length = 65535 /// Absolute network path, for example for transcoding sattelites.
/// Absolute Path /// </summary>
/// </summary> [MaxLength(65535)]
[Required] [StringLength(65535)]
[MaxLength(65535)] public string NetworkPath
[StringLength(65535)] {
public string Path get
{
get
{
string value = _Path;
GetPath(ref value);
return (_Path = value);
}
set
{
string oldValue = _Path;
SetPath(oldValue, ref value);
if (oldValue != value)
{ {
_Path = value; string value = _NetworkPath;
GetNetworkPath(ref value);
return (_NetworkPath = value);
} }
} set
}
/// <summary>
/// Backing field for NetworkPath
/// </summary>
protected string _NetworkPath;
/// <summary>
/// When provided in a partial class, allows value of NetworkPath to be changed before setting.
/// </summary>
partial void SetNetworkPath(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of NetworkPath to be changed before returning.
/// </summary>
partial void GetNetworkPath(ref string result);
/// <summary>
/// Max length = 65535
/// Absolute network path, for example for transcoding sattelites.
/// </summary>
[MaxLength(65535)]
[StringLength(65535)]
public string NetworkPath
{
get
{
string value = _NetworkPath;
GetNetworkPath(ref value);
return (_NetworkPath = value);
}
set
{
string oldValue = _NetworkPath;
SetNetworkPath(oldValue, ref value);
if (oldValue != value)
{ {
_NetworkPath = value; string oldValue = _NetworkPath;
SetNetworkPath(oldValue, ref value);
if (oldValue != value)
{
_NetworkPath = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Required, ConcurrenyToken
/// Required /// </summary>
/// </summary> [ConcurrencyCheck]
[ConcurrencyCheck] [Required]
[Required] public uint RowVersion { get; set; }
public byte[] Timestamp { get; set; }
public void OnSavingChanges()
/************************************************************************* {
* Navigation properties RowVersion++;
*************************************************************************/ }
/// <summary> /*************************************************************************
/// Required * Navigation properties
/// </summary> *************************************************************************/
public virtual global::Jellyfin.Data.Entities.Library Library { get; set; }
/// <summary>
} /// Required
/// </summary>
[ForeignKey("Library_Id")]
public virtual Library Library { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,189 +9,197 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MediaFile [Table("MediaFile")]
{ public partial class MediaFile
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected MediaFile() /// </summary>
{ protected MediaFile()
MediaFileStreams = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MediaFileStream>(); {
MediaFileStreams = new HashSet<MediaFileStream>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static MediaFile CreateMediaFileUnsafe() /// </summary>
{ public static MediaFile CreateMediaFileUnsafe()
return new MediaFile(); {
} return new MediaFile();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="path">Relative to the LibraryRoot</param> /// </summary>
/// <param name="kind"></param> /// <param name="path">Relative to the LibraryRoot</param>
/// <param name="_release0"></param> /// <param name="kind"></param>
public MediaFile(string path, global::Jellyfin.Data.Enums.MediaFileKind kind, global::Jellyfin.Data.Entities.Release _release0) /// <param name="_release0"></param>
{ public MediaFile(string path, Enums.MediaFileKind kind, Release _release0)
if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path)); {
this.Path = path; if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path));
this.Path = path;
this.Kind = kind;
this.Kind = kind;
if (_release0 == null) throw new ArgumentNullException(nameof(_release0));
_release0.MediaFiles.Add(this); if (_release0 == null) throw new ArgumentNullException(nameof(_release0));
_release0.MediaFiles.Add(this);
this.MediaFileStreams = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MediaFileStream>();
this.MediaFileStreams = new HashSet<MediaFileStream>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="path">Relative to the LibraryRoot</param> /// </summary>
/// <param name="kind"></param> /// <param name="path">Relative to the LibraryRoot</param>
/// <param name="_release0"></param> /// <param name="kind"></param>
public static MediaFile Create(string path, global::Jellyfin.Data.Enums.MediaFileKind kind, global::Jellyfin.Data.Entities.Release _release0) /// <param name="_release0"></param>
{ public static MediaFile Create(string path, Enums.MediaFileKind kind, Release _release0)
return new MediaFile(path, kind, _release0); {
} return new MediaFile(path, kind, _release0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for Path
/// </summary>
protected string _Path;
/// <summary>
/// When provided in a partial class, allows value of Path to be changed before setting.
/// </summary>
partial void SetPath(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Path to be changed before returning.
/// </summary>
partial void GetPath(ref string result);
/// <summary>
/// Required, Max length = 65535
/// Relative to the LibraryRoot
/// </summary>
[Required]
[MaxLength(65535)]
[StringLength(65535)]
public string Path
{
get
{
string value = _Path;
GetPath(ref value);
return (_Path = value);
}
set
{ {
_Id = value; string oldValue = _Path;
SetPath(oldValue, ref value);
if (oldValue != value)
{
_Path = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Kind
/// Backing field for Path /// </summary>
/// </summary> protected Enums.MediaFileKind _Kind;
protected string _Path; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Kind to be changed before setting.
/// When provided in a partial class, allows value of Path to be changed before setting. /// </summary>
/// </summary> partial void SetKind(Enums.MediaFileKind oldValue, ref Enums.MediaFileKind newValue);
partial void SetPath(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Kind to be changed before returning.
/// When provided in a partial class, allows value of Path to be changed before returning. /// </summary>
/// </summary> partial void GetKind(ref Enums.MediaFileKind result);
partial void GetPath(ref string result);
/// <summary>
/// <summary> /// Required
/// Required, Max length = 65535 /// </summary>
/// Relative to the LibraryRoot [Required]
/// </summary> public Enums.MediaFileKind Kind
[Required] {
[MaxLength(65535)] get
[StringLength(65535)]
public string Path
{
get
{
string value = _Path;
GetPath(ref value);
return (_Path = value);
}
set
{
string oldValue = _Path;
SetPath(oldValue, ref value);
if (oldValue != value)
{ {
_Path = value; Enums.MediaFileKind value = _Kind;
GetKind(ref value);
return (_Kind = value);
} }
} set
}
/// <summary>
/// Backing field for Kind
/// </summary>
protected global::Jellyfin.Data.Enums.MediaFileKind _Kind;
/// <summary>
/// When provided in a partial class, allows value of Kind to be changed before setting.
/// </summary>
partial void SetKind(global::Jellyfin.Data.Enums.MediaFileKind oldValue, ref global::Jellyfin.Data.Enums.MediaFileKind newValue);
/// <summary>
/// When provided in a partial class, allows value of Kind to be changed before returning.
/// </summary>
partial void GetKind(ref global::Jellyfin.Data.Enums.MediaFileKind result);
/// <summary>
/// Required
/// </summary>
[Required]
public global::Jellyfin.Data.Enums.MediaFileKind Kind
{
get
{
global::Jellyfin.Data.Enums.MediaFileKind value = _Kind;
GetKind(ref value);
return (_Kind = value);
}
set
{
global::Jellyfin.Data.Enums.MediaFileKind oldValue = _Kind;
SetKind(oldValue, ref value);
if (oldValue != value)
{ {
_Kind = value; Enums.MediaFileKind oldValue = _Kind;
SetKind(oldValue, ref value);
if (oldValue != value)
{
_Kind = value;
}
} }
} }
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.MediaFileStream> MediaFileStreams { get; protected set; } [ForeignKey("MediaFileStream_MediaFileStreams_Id")]
public virtual ICollection<MediaFileStream> MediaFileStreams { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,140 +9,147 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MediaFileStream [Table("MediaFileStream")]
{ public partial class MediaFileStream
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected MediaFileStream() /// </summary>
{ protected MediaFileStream()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static MediaFileStream CreateMediaFileStreamUnsafe() /// </summary>
{ public static MediaFileStream CreateMediaFileStreamUnsafe()
return new MediaFileStream(); {
} return new MediaFileStream();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="streamnumber"></param> /// </summary>
/// <param name="_mediafile0"></param> /// <param name="streamnumber"></param>
public MediaFileStream(int streamnumber, global::Jellyfin.Data.Entities.MediaFile _mediafile0) /// <param name="_mediafile0"></param>
{ public MediaFileStream(int streamnumber, MediaFile _mediafile0)
this.StreamNumber = streamnumber; {
this.StreamNumber = streamnumber;
if (_mediafile0 == null) throw new ArgumentNullException(nameof(_mediafile0));
_mediafile0.MediaFileStreams.Add(this); if (_mediafile0 == null) throw new ArgumentNullException(nameof(_mediafile0));
_mediafile0.MediaFileStreams.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="streamnumber"></param> /// </summary>
/// <param name="_mediafile0"></param> /// <param name="streamnumber"></param>
public static MediaFileStream Create(int streamnumber, global::Jellyfin.Data.Entities.MediaFile _mediafile0) /// <param name="_mediafile0"></param>
{ public static MediaFileStream Create(int streamnumber, MediaFile _mediafile0)
return new MediaFileStream(streamnumber, _mediafile0); {
} return new MediaFileStream(streamnumber, _mediafile0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for StreamNumber
/// Backing field for StreamNumber /// </summary>
/// </summary> protected int _StreamNumber;
protected int _StreamNumber; /// <summary>
/// <summary> /// When provided in a partial class, allows value of StreamNumber to be changed before setting.
/// When provided in a partial class, allows value of StreamNumber to be changed before setting. /// </summary>
/// </summary> partial void SetStreamNumber(int oldValue, ref int newValue);
partial void SetStreamNumber(int oldValue, ref int newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of StreamNumber to be changed before returning.
/// When provided in a partial class, allows value of StreamNumber to be changed before returning. /// </summary>
/// </summary> partial void GetStreamNumber(ref int result);
partial void GetStreamNumber(ref int result);
/// <summary>
/// <summary> /// Required
/// Required /// </summary>
/// </summary> [Required]
[Required] public int StreamNumber
public int StreamNumber {
{ get
get
{
int value = _StreamNumber;
GetStreamNumber(ref value);
return (_StreamNumber = value);
}
set
{
int oldValue = _StreamNumber;
SetStreamNumber(oldValue, ref value);
if (oldValue != value)
{ {
_StreamNumber = value; int value = _StreamNumber;
GetStreamNumber(ref value);
return (_StreamNumber = value);
} }
} set
} {
int oldValue = _StreamNumber;
SetStreamNumber(oldValue, ref value);
if (oldValue != value)
{
_StreamNumber = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,365 +9,377 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public abstract partial class Metadata [Table("Metadata")]
{ public abstract partial class Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to being abstract. /// <summary>
/// </summary> /// Default constructor. Protected due to being abstract.
protected Metadata() /// </summary>
{ protected Metadata()
PersonRoles = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.PersonRole>(); {
Genres = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Genre>(); PersonRoles = new HashSet<PersonRole>();
Artwork = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Artwork>(); Genres = new HashSet<Genre>();
Ratings = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Rating>(); Artwork = new HashSet<Artwork>();
Sources = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MetadataProviderId>(); Ratings = new HashSet<Rating>();
Sources = new HashSet<MetadataProviderId>();
Init();
} Init();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
protected Metadata(string title, string language, DateTime dateadded, DateTime datemodified) /// <param name="language">ISO-639-3 3-character language codes</param>
{ protected Metadata(string title, string language, DateTime dateadded, DateTime datemodified)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
this.PersonRoles = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.PersonRole>();
this.Genres = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Genre>(); this.PersonRoles = new HashSet<PersonRole>();
this.Artwork = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Artwork>(); this.Genres = new HashSet<Genre>();
this.Ratings = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Rating>(); this.Artwork = new HashSet<Artwork>();
this.Sources = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MetadataProviderId>(); this.Ratings = new HashSet<Rating>();
this.Sources = new HashSet<MetadataProviderId>();
Init();
} Init();
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for Title
/// </summary>
protected string _Title;
/// <summary>
/// When provided in a partial class, allows value of Title to be changed before setting.
/// </summary>
partial void SetTitle(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Title to be changed before returning.
/// </summary>
partial void GetTitle(ref string result);
/// <summary>
/// Required, Max length = 1024
/// The title or name of the object
/// </summary>
[Required]
[MaxLength(1024)]
[StringLength(1024)]
public string Title
{
get
{
string value = _Title;
GetTitle(ref value);
return (_Title = value);
}
set
{
string oldValue = _Title;
SetTitle(oldValue, ref value);
if (oldValue != value)
{
_Title = value;
}
}
}
/// <summary>
/// Backing field for OriginalTitle
/// </summary>
protected string _OriginalTitle;
/// <summary>
/// When provided in a partial class, allows value of OriginalTitle to be changed before setting.
/// </summary>
partial void SetOriginalTitle(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of OriginalTitle to be changed before returning.
/// </summary>
partial void GetOriginalTitle(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string OriginalTitle
{
get
{ {
_Id = value; string value = _OriginalTitle;
GetOriginalTitle(ref value);
return (_OriginalTitle = value);
} }
} set
}
/// <summary>
/// Backing field for Title
/// </summary>
protected string _Title;
/// <summary>
/// When provided in a partial class, allows value of Title to be changed before setting.
/// </summary>
partial void SetTitle(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Title to be changed before returning.
/// </summary>
partial void GetTitle(ref string result);
/// <summary>
/// Required, Max length = 1024
/// The title or name of the object
/// </summary>
[Required]
[MaxLength(1024)]
[StringLength(1024)]
public string Title
{
get
{
string value = _Title;
GetTitle(ref value);
return (_Title = value);
}
set
{
string oldValue = _Title;
SetTitle(oldValue, ref value);
if (oldValue != value)
{ {
_Title = value; string oldValue = _OriginalTitle;
SetOriginalTitle(oldValue, ref value);
if (oldValue != value)
{
_OriginalTitle = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for SortTitle
/// Backing field for OriginalTitle /// </summary>
/// </summary> protected string _SortTitle;
protected string _OriginalTitle; /// <summary>
/// <summary> /// When provided in a partial class, allows value of SortTitle to be changed before setting.
/// When provided in a partial class, allows value of OriginalTitle to be changed before setting. /// </summary>
/// </summary> partial void SetSortTitle(string oldValue, ref string newValue);
partial void SetOriginalTitle(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of SortTitle to be changed before returning.
/// When provided in a partial class, allows value of OriginalTitle to be changed before returning. /// </summary>
/// </summary> partial void GetSortTitle(ref string result);
partial void GetOriginalTitle(ref string result);
/// <summary>
/// <summary> /// Max length = 1024
/// Max length = 1024 /// </summary>
/// </summary> [MaxLength(1024)]
[MaxLength(1024)] [StringLength(1024)]
[StringLength(1024)] public string SortTitle
public string OriginalTitle {
{ get
get
{
string value = _OriginalTitle;
GetOriginalTitle(ref value);
return (_OriginalTitle = value);
}
set
{
string oldValue = _OriginalTitle;
SetOriginalTitle(oldValue, ref value);
if (oldValue != value)
{ {
_OriginalTitle = value; string value = _SortTitle;
GetSortTitle(ref value);
return (_SortTitle = value);
} }
} set
}
/// <summary>
/// Backing field for SortTitle
/// </summary>
protected string _SortTitle;
/// <summary>
/// When provided in a partial class, allows value of SortTitle to be changed before setting.
/// </summary>
partial void SetSortTitle(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of SortTitle to be changed before returning.
/// </summary>
partial void GetSortTitle(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string SortTitle
{
get
{
string value = _SortTitle;
GetSortTitle(ref value);
return (_SortTitle = value);
}
set
{
string oldValue = _SortTitle;
SetSortTitle(oldValue, ref value);
if (oldValue != value)
{ {
_SortTitle = value; string oldValue = _SortTitle;
SetSortTitle(oldValue, ref value);
if (oldValue != value)
{
_SortTitle = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Language
/// Backing field for Language /// </summary>
/// </summary> protected string _Language;
protected string _Language; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Language to be changed before setting.
/// When provided in a partial class, allows value of Language to be changed before setting. /// </summary>
/// </summary> partial void SetLanguage(string oldValue, ref string newValue);
partial void SetLanguage(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Language to be changed before returning.
/// When provided in a partial class, allows value of Language to be changed before returning. /// </summary>
/// </summary> partial void GetLanguage(ref string result);
partial void GetLanguage(ref string result);
/// <summary>
/// <summary> /// Required, Min length = 3, Max length = 3
/// Required, Min length = 3, Max length = 3 /// ISO-639-3 3-character language codes
/// ISO-639-3 3-character language codes /// </summary>
/// </summary> [Required]
[Required] [MinLength(3)]
[MinLength(3)] [MaxLength(3)]
[MaxLength(3)] [StringLength(3)]
[StringLength(3)] public string Language
public string Language {
{ get
get
{
string value = _Language;
GetLanguage(ref value);
return (_Language = value);
}
set
{
string oldValue = _Language;
SetLanguage(oldValue, ref value);
if (oldValue != value)
{ {
_Language = value; string value = _Language;
GetLanguage(ref value);
return (_Language = value);
} }
} set
}
/// <summary>
/// Backing field for ReleaseDate
/// </summary>
protected DateTimeOffset? _ReleaseDate;
/// <summary>
/// When provided in a partial class, allows value of ReleaseDate to be changed before setting.
/// </summary>
partial void SetReleaseDate(DateTimeOffset? oldValue, ref DateTimeOffset? newValue);
/// <summary>
/// When provided in a partial class, allows value of ReleaseDate to be changed before returning.
/// </summary>
partial void GetReleaseDate(ref DateTimeOffset? result);
public DateTimeOffset? ReleaseDate
{
get
{
DateTimeOffset? value = _ReleaseDate;
GetReleaseDate(ref value);
return (_ReleaseDate = value);
}
set
{
DateTimeOffset? oldValue = _ReleaseDate;
SetReleaseDate(oldValue, ref value);
if (oldValue != value)
{ {
_ReleaseDate = value; string oldValue = _Language;
SetLanguage(oldValue, ref value);
if (oldValue != value)
{
_Language = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for ReleaseDate
/// Backing field for DateAdded /// </summary>
/// </summary> protected DateTimeOffset? _ReleaseDate;
protected DateTime _DateAdded; /// <summary>
/// <summary> /// When provided in a partial class, allows value of ReleaseDate to be changed before setting.
/// When provided in a partial class, allows value of DateAdded to be changed before setting. /// </summary>
/// </summary> partial void SetReleaseDate(DateTimeOffset? oldValue, ref DateTimeOffset? newValue);
partial void SetDateAdded(DateTime oldValue, ref DateTime newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of ReleaseDate to be changed before returning.
/// When provided in a partial class, allows value of DateAdded to be changed before returning. /// </summary>
/// </summary> partial void GetReleaseDate(ref DateTimeOffset? result);
partial void GetDateAdded(ref DateTime result);
public DateTimeOffset? ReleaseDate
/// <summary> {
/// Required get
/// </summary>
[Required]
public DateTime DateAdded
{
get
{
DateTime value = _DateAdded;
GetDateAdded(ref value);
return (_DateAdded = value);
}
internal set
{
DateTime oldValue = _DateAdded;
SetDateAdded(oldValue, ref value);
if (oldValue != value)
{ {
_DateAdded = value; DateTimeOffset? value = _ReleaseDate;
GetReleaseDate(ref value);
return (_ReleaseDate = value);
} }
} set
}
/// <summary>
/// Backing field for DateModified
/// </summary>
protected DateTime _DateModified;
/// <summary>
/// When provided in a partial class, allows value of DateModified to be changed before setting.
/// </summary>
partial void SetDateModified(DateTime oldValue, ref DateTime newValue);
/// <summary>
/// When provided in a partial class, allows value of DateModified to be changed before returning.
/// </summary>
partial void GetDateModified(ref DateTime result);
/// <summary>
/// Required
/// </summary>
[Required]
public DateTime DateModified
{
get
{
DateTime value = _DateModified;
GetDateModified(ref value);
return (_DateModified = value);
}
internal set
{
DateTime oldValue = _DateModified;
SetDateModified(oldValue, ref value);
if (oldValue != value)
{ {
_DateModified = value; DateTimeOffset? oldValue = _ReleaseDate;
SetReleaseDate(oldValue, ref value);
if (oldValue != value)
{
_ReleaseDate = value;
}
} }
} }
}
/// <summary>
/// Backing field for DateAdded
/// </summary>
protected DateTime _DateAdded;
/// <summary>
/// When provided in a partial class, allows value of DateAdded to be changed before setting.
/// </summary>
partial void SetDateAdded(DateTime oldValue, ref DateTime newValue);
/// <summary>
/// When provided in a partial class, allows value of DateAdded to be changed before returning.
/// </summary>
partial void GetDateAdded(ref DateTime result);
/// <summary>
/// Required
/// </summary>
[Required]
public DateTime DateAdded
{
get
{
DateTime value = _DateAdded;
GetDateAdded(ref value);
return (_DateAdded = value);
}
internal set
{
DateTime oldValue = _DateAdded;
SetDateAdded(oldValue, ref value);
if (oldValue != value)
{
_DateAdded = value;
}
}
}
/// <summary>
/// Backing field for DateModified
/// </summary>
protected DateTime _DateModified;
/// <summary>
/// When provided in a partial class, allows value of DateModified to be changed before setting.
/// </summary>
partial void SetDateModified(DateTime oldValue, ref DateTime newValue);
/// <summary>
/// When provided in a partial class, allows value of DateModified to be changed before returning.
/// </summary>
partial void GetDateModified(ref DateTime result);
/// <summary>
/// Required
/// </summary>
[Required]
public DateTime DateModified
{
get
{
DateTime value = _DateModified;
GetDateModified(ref value);
return (_DateModified = value);
}
internal set
{
DateTime oldValue = _DateModified;
SetDateModified(oldValue, ref value);
if (oldValue != value)
{
_DateModified = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.PersonRole> PersonRoles { get; protected set; } [ForeignKey("PersonRole_PersonRoles_Id")]
public virtual ICollection<PersonRole> PersonRoles { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Genre> Genres { get; protected set; } [ForeignKey("PersonRole_PersonRoles_Id")]
public virtual ICollection<Genre> Genres { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Artwork> Artwork { get; protected set; } [ForeignKey("PersonRole_PersonRoles_Id")]
public virtual ICollection<Artwork> Artwork { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Rating> Ratings { get; protected set; } [ForeignKey("PersonRole_PersonRoles_Id")]
public virtual ICollection<Rating> Ratings { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.MetadataProviderId> Sources { get; protected set; } [ForeignKey("PersonRole_PersonRoles_Id")]
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,138 +9,145 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MetadataProvider [Table("MetadataProvider")]
{ public partial class MetadataProvider
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected MetadataProvider() /// </summary>
{ protected MetadataProvider()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static MetadataProvider CreateMetadataProviderUnsafe() /// </summary>
{ public static MetadataProvider CreateMetadataProviderUnsafe()
return new MetadataProvider(); {
} return new MetadataProvider();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="name"></param> /// </summary>
public MetadataProvider(string name) /// <param name="name"></param>
{ public MetadataProvider(string name)
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); {
this.Name = name; if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
this.Name = name;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="name"></param> /// </summary>
public static MetadataProvider Create(string name) /// <param name="name"></param>
{ public static MetadataProvider Create(string name)
return new MetadataProvider(name); {
} return new MetadataProvider(name);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Name
/// Backing field for Name /// </summary>
/// </summary> protected string _Name;
protected string _Name; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before setting.
/// When provided in a partial class, allows value of Name to be changed before setting. /// </summary>
/// </summary> partial void SetName(string oldValue, ref string newValue);
partial void SetName(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before returning.
/// When provided in a partial class, allows value of Name to be changed before returning. /// </summary>
/// </summary> partial void GetName(ref string result);
partial void GetName(ref string result);
/// <summary>
/// <summary> /// Required, Max length = 1024
/// Required, Max length = 1024 /// </summary>
/// </summary> [Required]
[Required] [MaxLength(1024)]
[MaxLength(1024)] [StringLength(1024)]
[StringLength(1024)] public string Name
public string Name {
{ get
get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; string value = _Name;
GetName(ref value);
return (_Name = value);
} }
} set
} {
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
/// <summary> public void OnSavingChanges()
/// Required {
/// </summary> RowVersion++;
[ConcurrencyCheck] }
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,169 +9,177 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MetadataProviderId [Table("MetadataProviderId")]
{ public partial class MetadataProviderId
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected MetadataProviderId() /// </summary>
{ protected MetadataProviderId()
// NOTE: This class has one-to-one associations with MetadataProviderId. {
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. // NOTE: This class has one-to-one associations with MetadataProviderId.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static MetadataProviderId CreateMetadataProviderIdUnsafe() /// </summary>
{ public static MetadataProviderId CreateMetadataProviderIdUnsafe()
return new MetadataProviderId(); {
} return new MetadataProviderId();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="providerid"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="providerid"></param>
/// <param name="_person1"></param> /// <param name="_metadata0"></param>
/// <param name="_personrole2"></param> /// <param name="_person1"></param>
/// <param name="_ratingsource3"></param> /// <param name="_personrole2"></param>
public MetadataProviderId(string providerid, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.Person _person1, global::Jellyfin.Data.Entities.PersonRole _personrole2, global::Jellyfin.Data.Entities.RatingSource _ratingsource3) /// <param name="_ratingsource3"></param>
{ public MetadataProviderId(string providerid, Metadata _metadata0, Person _person1, PersonRole _personrole2, RatingSource _ratingsource3)
// NOTE: This class has one-to-one associations with MetadataProviderId. {
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. // NOTE: This class has one-to-one associations with MetadataProviderId.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
if (string.IsNullOrEmpty(providerid)) throw new ArgumentNullException(nameof(providerid));
this.ProviderId = providerid; if (string.IsNullOrEmpty(providerid)) throw new ArgumentNullException(nameof(providerid));
this.ProviderId = providerid;
if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Sources.Add(this); if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Sources.Add(this);
if (_person1 == null) throw new ArgumentNullException(nameof(_person1));
_person1.Sources.Add(this); if (_person1 == null) throw new ArgumentNullException(nameof(_person1));
_person1.Sources.Add(this);
if (_personrole2 == null) throw new ArgumentNullException(nameof(_personrole2));
_personrole2.Sources.Add(this); if (_personrole2 == null) throw new ArgumentNullException(nameof(_personrole2));
_personrole2.Sources.Add(this);
if (_ratingsource3 == null) throw new ArgumentNullException(nameof(_ratingsource3));
_ratingsource3.Source = this; if (_ratingsource3 == null) throw new ArgumentNullException(nameof(_ratingsource3));
_ratingsource3.Source = this;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="providerid"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="providerid"></param>
/// <param name="_person1"></param> /// <param name="_metadata0"></param>
/// <param name="_personrole2"></param> /// <param name="_person1"></param>
/// <param name="_ratingsource3"></param> /// <param name="_personrole2"></param>
public static MetadataProviderId Create(string providerid, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.Person _person1, global::Jellyfin.Data.Entities.PersonRole _personrole2, global::Jellyfin.Data.Entities.RatingSource _ratingsource3) /// <param name="_ratingsource3"></param>
{ public static MetadataProviderId Create(string providerid, Metadata _metadata0, Person _person1, PersonRole _personrole2, RatingSource _ratingsource3)
return new MetadataProviderId(providerid, _metadata0, _person1, _personrole2, _ratingsource3); {
} return new MetadataProviderId(providerid, _metadata0, _person1, _personrole2, _ratingsource3);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for ProviderId
/// </summary>
protected string _ProviderId;
/// <summary>
/// When provided in a partial class, allows value of ProviderId to be changed before setting.
/// </summary>
partial void SetProviderId(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of ProviderId to be changed before returning.
/// </summary>
partial void GetProviderId(ref string result);
/// <summary>
/// Required, Max length = 255
/// </summary>
[Required]
[MaxLength(255)]
[StringLength(255)]
public string ProviderId
{
get
{ {
_Id = value; string value = _ProviderId;
GetProviderId(ref value);
return (_ProviderId = value);
} }
} set
}
/// <summary>
/// Backing field for ProviderId
/// </summary>
protected string _ProviderId;
/// <summary>
/// When provided in a partial class, allows value of ProviderId to be changed before setting.
/// </summary>
partial void SetProviderId(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of ProviderId to be changed before returning.
/// </summary>
partial void GetProviderId(ref string result);
/// <summary>
/// Required, Max length = 255
/// </summary>
[Required]
[MaxLength(255)]
[StringLength(255)]
public string ProviderId
{
get
{
string value = _ProviderId;
GetProviderId(ref value);
return (_ProviderId = value);
}
set
{
string oldValue = _ProviderId;
SetProviderId(oldValue, ref value);
if (oldValue != value)
{ {
_ProviderId = value; string oldValue = _ProviderId;
SetProviderId(oldValue, ref value);
if (oldValue != value)
{
_ProviderId = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Required, ConcurrenyToken
/// Required /// </summary>
/// </summary> [ConcurrencyCheck]
[ConcurrencyCheck] [Required]
[Required] public uint RowVersion { get; set; }
public byte[] Timestamp { get; set; }
public void OnSavingChanges()
/************************************************************************* {
* Navigation properties RowVersion++;
*************************************************************************/ }
/// <summary> /*************************************************************************
/// Required * Navigation properties
/// </summary> *************************************************************************/
public virtual global::Jellyfin.Data.Entities.MetadataProvider MetadataProvider { get; set; }
/// <summary>
} /// Required
/// </summary>
[ForeignKey("MetadataProvider_Id")]
public virtual MetadataProvider MetadataProvider { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,64 +9,67 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Movie: global::Jellyfin.Data.Entities.LibraryItem [Table("Movie")]
{ public partial class Movie : LibraryItem
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected Movie(): base() protected Movie() : base()
{ {
Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>(); Releases = new HashSet<Release>();
MovieMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MovieMetadata>(); MovieMetadata = new HashSet<MovieMetadata>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static Movie CreateMovieUnsafe() public static Movie CreateMovieUnsafe()
{ {
return new Movie(); return new Movie();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public Movie(Guid urlid, DateTime dateadded) public Movie(Guid urlid, DateTime dateadded)
{ {
this.UrlId = urlid; this.UrlId = urlid;
this.Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>(); this.Releases = new HashSet<Release>();
this.MovieMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MovieMetadata>(); this.MovieMetadata = new HashSet<MovieMetadata>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Movie Create(Guid urlid, DateTime dateadded) public static Movie Create(Guid urlid, DateTime dateadded)
{ {
return new Movie(urlid, dateadded); return new Movie(urlid, dateadded);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.Release> Releases { get; protected set; } [ForeignKey("Release_Releases_Id")]
public virtual ICollection<Release> Releases { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.MovieMetadata> MovieMetadata { get; protected set; } [ForeignKey("MovieMetadata_MovieMetadata_Id")]
public virtual ICollection<MovieMetadata> MovieMetadata { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,219 +9,220 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MovieMetadata: global::Jellyfin.Data.Entities.Metadata [Table("MovieMetadata")]
{ public partial class MovieMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected MovieMetadata(): base() /// </summary>
{ protected MovieMetadata() : base()
Studios = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>(); {
Studios = new HashSet<Company>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static MovieMetadata CreateMovieMetadataUnsafe() /// </summary>
{ public static MovieMetadata CreateMovieMetadataUnsafe()
return new MovieMetadata(); {
} return new MovieMetadata();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_movie0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public MovieMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Movie _movie0) /// <param name="_movie0"></param>
{ public MovieMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Movie _movie0)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
if (_movie0 == null) throw new ArgumentNullException(nameof(_movie0));
_movie0.MovieMetadata.Add(this); if (_movie0 == null) throw new ArgumentNullException(nameof(_movie0));
_movie0.MovieMetadata.Add(this);
this.Studios = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>();
this.Studios = new HashSet<Company>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_movie0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public static MovieMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Movie _movie0) /// <param name="_movie0"></param>
{ public static MovieMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Movie _movie0)
return new MovieMetadata(title, language, dateadded, datemodified, _movie0); {
} return new MovieMetadata(title, language, dateadded, datemodified, _movie0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Outline /// <summary>
/// </summary> /// Backing field for Outline
protected string _Outline; /// </summary>
/// <summary> protected string _Outline;
/// When provided in a partial class, allows value of Outline to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before setting.
partial void SetOutline(string oldValue, ref string newValue); /// </summary>
/// <summary> partial void SetOutline(string oldValue, ref string newValue);
/// When provided in a partial class, allows value of Outline to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before returning.
partial void GetOutline(ref string result); /// </summary>
partial void GetOutline(ref string result);
/// <summary>
/// Max length = 1024 /// <summary>
/// </summary> /// Max length = 1024
[MaxLength(1024)] /// </summary>
[StringLength(1024)] [MaxLength(1024)]
public string Outline [StringLength(1024)]
{ public string Outline
get {
{ get
string value = _Outline;
GetOutline(ref value);
return (_Outline = value);
}
set
{
string oldValue = _Outline;
SetOutline(oldValue, ref value);
if (oldValue != value)
{ {
_Outline = value; string value = _Outline;
GetOutline(ref value);
return (_Outline = value);
} }
} set
}
/// <summary>
/// Backing field for Plot
/// </summary>
protected string _Plot;
/// <summary>
/// When provided in a partial class, allows value of Plot to be changed before setting.
/// </summary>
partial void SetPlot(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Plot to be changed before returning.
/// </summary>
partial void GetPlot(ref string result);
/// <summary>
/// Max length = 65535
/// </summary>
[MaxLength(65535)]
[StringLength(65535)]
public string Plot
{
get
{
string value = _Plot;
GetPlot(ref value);
return (_Plot = value);
}
set
{
string oldValue = _Plot;
SetPlot(oldValue, ref value);
if (oldValue != value)
{ {
_Plot = value; string oldValue = _Outline;
SetOutline(oldValue, ref value);
if (oldValue != value)
{
_Outline = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Plot
/// Backing field for Tagline /// </summary>
/// </summary> protected string _Plot;
protected string _Tagline; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Plot to be changed before setting.
/// When provided in a partial class, allows value of Tagline to be changed before setting. /// </summary>
/// </summary> partial void SetPlot(string oldValue, ref string newValue);
partial void SetTagline(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Plot to be changed before returning.
/// When provided in a partial class, allows value of Tagline to be changed before returning. /// </summary>
/// </summary> partial void GetPlot(ref string result);
partial void GetTagline(ref string result);
/// <summary>
/// <summary> /// Max length = 65535
/// Max length = 1024 /// </summary>
/// </summary> [MaxLength(65535)]
[MaxLength(1024)] [StringLength(65535)]
[StringLength(1024)] public string Plot
public string Tagline {
{ get
get
{
string value = _Tagline;
GetTagline(ref value);
return (_Tagline = value);
}
set
{
string oldValue = _Tagline;
SetTagline(oldValue, ref value);
if (oldValue != value)
{ {
_Tagline = value; string value = _Plot;
GetPlot(ref value);
return (_Plot = value);
} }
} set
}
/// <summary>
/// Backing field for Country
/// </summary>
protected string _Country;
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before setting.
/// </summary>
partial void SetCountry(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before returning.
/// </summary>
partial void GetCountry(ref string result);
/// <summary>
/// Max length = 2
/// </summary>
[MaxLength(2)]
[StringLength(2)]
public string Country
{
get
{
string value = _Country;
GetCountry(ref value);
return (_Country = value);
}
set
{
string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{ {
_Country = value; string oldValue = _Plot;
SetPlot(oldValue, ref value);
if (oldValue != value)
{
_Plot = value;
}
} }
} }
}
/// <summary>
/************************************************************************* /// Backing field for Tagline
* Navigation properties /// </summary>
*************************************************************************/ protected string _Tagline;
/// <summary>
/// When provided in a partial class, allows value of Tagline to be changed before setting.
/// </summary>
partial void SetTagline(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Tagline to be changed before returning.
/// </summary>
partial void GetTagline(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Tagline
{
get
{
string value = _Tagline;
GetTagline(ref value);
return (_Tagline = value);
}
set
{
string oldValue = _Tagline;
SetTagline(oldValue, ref value);
if (oldValue != value)
{
_Tagline = value;
}
}
}
/// <summary>
/// Backing field for Country
/// </summary>
protected string _Country;
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before setting.
/// </summary>
partial void SetCountry(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before returning.
/// </summary>
partial void GetCountry(ref string result);
/// <summary>
/// Max length = 2
/// </summary>
[MaxLength(2)]
[StringLength(2)]
public string Country
{
get
{
string value = _Country;
GetCountry(ref value);
return (_Country = value);
}
set
{
string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{
_Country = value;
}
}
}
public virtual ICollection<global::Jellyfin.Data.Entities.Company> Studios { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("Company_Studios_Id")]
public virtual ICollection<Company> Studios { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,64 +9,66 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MusicAlbum: global::Jellyfin.Data.Entities.LibraryItem [Table("MusicAlbum")]
{ public partial class MusicAlbum : LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
protected MusicAlbum(): base()
{
MusicAlbumMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MusicAlbumMetadata>();
Tracks = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Track>();
Init(); /// <summary>
} /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
protected MusicAlbum() : base()
{
MusicAlbumMetadata = new HashSet<MusicAlbumMetadata>();
Tracks = new HashSet<Track>();
/// <summary> Init();
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. }
/// </summary>
public static MusicAlbum CreateMusicAlbumUnsafe()
{
return new MusicAlbum();
}
/// <summary> /// <summary>
/// Public constructor with required data /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> public static MusicAlbum CreateMusicAlbumUnsafe()
public MusicAlbum(Guid urlid, DateTime dateadded) {
{ return new MusicAlbum();
this.UrlId = urlid; }
this.MusicAlbumMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MusicAlbumMetadata>(); /// <summary>
this.Tracks = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Track>(); /// Public constructor with required data
/// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public MusicAlbum(Guid urlid, DateTime dateadded)
{
this.UrlId = urlid;
Init(); this.MusicAlbumMetadata = new HashSet<MusicAlbumMetadata>();
} this.Tracks = new HashSet<Track>();
/// <summary> Init();
/// Static create function (for use in LINQ queries, etc.) }
/// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static MusicAlbum Create(Guid urlid, DateTime dateadded)
{
return new MusicAlbum(urlid, dateadded);
}
/************************************************************************* /// <summary>
* Properties /// Static create function (for use in LINQ queries, etc.)
*************************************************************************/ /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static MusicAlbum Create(Guid urlid, DateTime dateadded)
{
return new MusicAlbum(urlid, dateadded);
}
/************************************************************************* /*************************************************************************
* Navigation properties * Properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.MusicAlbumMetadata> MusicAlbumMetadata { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("MusicAlbumMetadata_MusicAlbumMetadata_Id")]
public virtual ICollection<MusicAlbumMetadata> MusicAlbumMetadata { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Track> Tracks { get; protected set; } [ForeignKey("Track_Tracks_Id")]
public virtual ICollection<Track> Tracks { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,182 +9,184 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class MusicAlbumMetadata: global::Jellyfin.Data.Entities.Metadata [Table("MusicAlbumMetadata")]
{ public partial class MusicAlbumMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected MusicAlbumMetadata(): base() /// </summary>
{ protected MusicAlbumMetadata() : base()
Labels = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>(); {
Labels = new HashSet<Company>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static MusicAlbumMetadata CreateMusicAlbumMetadataUnsafe() /// </summary>
{ public static MusicAlbumMetadata CreateMusicAlbumMetadataUnsafe()
return new MusicAlbumMetadata(); {
} return new MusicAlbumMetadata();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_musicalbum0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public MusicAlbumMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.MusicAlbum _musicalbum0) /// <param name="_musicalbum0"></param>
{ public MusicAlbumMetadata(string title, string language, DateTime dateadded, DateTime datemodified, MusicAlbum _musicalbum0)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
if (_musicalbum0 == null) throw new ArgumentNullException(nameof(_musicalbum0));
_musicalbum0.MusicAlbumMetadata.Add(this); if (_musicalbum0 == null) throw new ArgumentNullException(nameof(_musicalbum0));
_musicalbum0.MusicAlbumMetadata.Add(this);
this.Labels = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>();
this.Labels = new HashSet<Company>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_musicalbum0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public static MusicAlbumMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.MusicAlbum _musicalbum0) /// <param name="_musicalbum0"></param>
{ public static MusicAlbumMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, MusicAlbum _musicalbum0)
return new MusicAlbumMetadata(title, language, dateadded, datemodified, _musicalbum0); {
} return new MusicAlbumMetadata(title, language, dateadded, datemodified, _musicalbum0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Barcode /// <summary>
/// </summary> /// Backing field for Barcode
protected string _Barcode; /// </summary>
/// <summary> protected string _Barcode;
/// When provided in a partial class, allows value of Barcode to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Barcode to be changed before setting.
partial void SetBarcode(string oldValue, ref string newValue); /// </summary>
/// <summary> partial void SetBarcode(string oldValue, ref string newValue);
/// When provided in a partial class, allows value of Barcode to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Barcode to be changed before returning.
partial void GetBarcode(ref string result); /// </summary>
partial void GetBarcode(ref string result);
/// <summary>
/// Max length = 255 /// <summary>
/// </summary> /// Max length = 255
[MaxLength(255)] /// </summary>
[StringLength(255)] [MaxLength(255)]
public string Barcode [StringLength(255)]
{ public string Barcode
get {
{ get
string value = _Barcode; {
GetBarcode(ref value); string value = _Barcode;
return (_Barcode = value); GetBarcode(ref value);
} return (_Barcode = value);
set }
{ set
string oldValue = _Barcode; {
SetBarcode(oldValue, ref value); string oldValue = _Barcode;
if (oldValue != value) SetBarcode(oldValue, ref value);
if (oldValue != value)
{
_Barcode = value;
}
}
}
/// <summary>
/// Backing field for LabelNumber
/// </summary>
protected string _LabelNumber;
/// <summary>
/// When provided in a partial class, allows value of LabelNumber to be changed before setting.
/// </summary>
partial void SetLabelNumber(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of LabelNumber to be changed before returning.
/// </summary>
partial void GetLabelNumber(ref string result);
/// <summary>
/// Max length = 255
/// </summary>
[MaxLength(255)]
[StringLength(255)]
public string LabelNumber
{
get
{
string value = _LabelNumber;
GetLabelNumber(ref value);
return (_LabelNumber = value);
}
set
{ {
_Barcode = value; string oldValue = _LabelNumber;
SetLabelNumber(oldValue, ref value);
if (oldValue != value)
{
_LabelNumber = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Country
/// Backing field for LabelNumber /// </summary>
/// </summary> protected string _Country;
protected string _LabelNumber; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Country to be changed before setting.
/// When provided in a partial class, allows value of LabelNumber to be changed before setting. /// </summary>
/// </summary> partial void SetCountry(string oldValue, ref string newValue);
partial void SetLabelNumber(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Country to be changed before returning.
/// When provided in a partial class, allows value of LabelNumber to be changed before returning. /// </summary>
/// </summary> partial void GetCountry(ref string result);
partial void GetLabelNumber(ref string result);
/// <summary>
/// <summary> /// Max length = 2
/// Max length = 255 /// </summary>
/// </summary> [MaxLength(2)]
[MaxLength(255)] [StringLength(2)]
[StringLength(255)] public string Country
public string LabelNumber {
{ get
get
{
string value = _LabelNumber;
GetLabelNumber(ref value);
return (_LabelNumber = value);
}
set
{
string oldValue = _LabelNumber;
SetLabelNumber(oldValue, ref value);
if (oldValue != value)
{ {
_LabelNumber = value; string value = _Country;
GetCountry(ref value);
return (_Country = value);
} }
} set
}
/// <summary>
/// Backing field for Country
/// </summary>
protected string _Country;
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before setting.
/// </summary>
partial void SetCountry(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before returning.
/// </summary>
partial void GetCountry(ref string result);
/// <summary>
/// Max length = 2
/// </summary>
[MaxLength(2)]
[StringLength(2)]
public string Country
{
get
{
string value = _Country;
GetCountry(ref value);
return (_Country = value);
}
set
{
string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{ {
_Country = value; string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{
_Country = value;
}
} }
} }
}
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.Company> Labels { get; protected set; } [ForeignKey("Company_Labels_Id")]
public virtual ICollection<Company> Labels { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,132 +9,140 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Permission [Table("Permission")]
{ public partial class Permission
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Permission() /// </summary>
{ protected Permission()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Permission CreatePermissionUnsafe() /// </summary>
{ public static Permission CreatePermissionUnsafe()
return new Permission(); {
} return new Permission();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="kind"></param> /// </summary>
/// <param name="value"></param> /// <param name="kind"></param>
/// <param name="_user0"></param> /// <param name="value"></param>
/// <param name="_group1"></param> /// <param name="_user0"></param>
public Permission(global::Jellyfin.Data.Enums.PermissionKind kind, bool value, global::Jellyfin.Data.Entities.User _user0, global::Jellyfin.Data.Entities.Group _group1) /// <param name="_group1"></param>
{ public Permission(Enums.PermissionKind kind, bool value, User _user0, Group _group1)
this.Kind = kind; {
this.Kind = kind;
this.Value = value;
this.Value = value;
if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.Permissions.Add(this); if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.Permissions.Add(this);
if (_group1 == null) throw new ArgumentNullException(nameof(_group1));
_group1.GroupPermissions.Add(this); if (_group1 == null) throw new ArgumentNullException(nameof(_group1));
_group1.GroupPermissions.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="kind"></param> /// </summary>
/// <param name="value"></param> /// <param name="kind"></param>
/// <param name="_user0"></param> /// <param name="value"></param>
/// <param name="_group1"></param> /// <param name="_user0"></param>
public static Permission Create(global::Jellyfin.Data.Enums.PermissionKind kind, bool value, global::Jellyfin.Data.Entities.User _user0, global::Jellyfin.Data.Entities.Group _group1) /// <param name="_group1"></param>
{ public static Permission Create(Enums.PermissionKind kind, bool value, User _user0, Group _group1)
return new Permission(kind, value, _user0, _group1); {
} return new Permission(kind, value, _user0, _group1);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id { get; protected set; } [Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
/// <summary> public int Id { get; protected set; }
/// Backing field for Kind
/// </summary> /// <summary>
protected global::Jellyfin.Data.Enums.PermissionKind _Kind; /// Backing field for Kind
/// <summary> /// </summary>
/// When provided in a partial class, allows value of Kind to be changed before setting. protected Enums.PermissionKind _Kind;
/// </summary> /// <summary>
partial void SetKind(global::Jellyfin.Data.Enums.PermissionKind oldValue, ref global::Jellyfin.Data.Enums.PermissionKind newValue); /// When provided in a partial class, allows value of Kind to be changed before setting.
/// <summary> /// </summary>
/// When provided in a partial class, allows value of Kind to be changed before returning. partial void SetKind(Enums.PermissionKind oldValue, ref Enums.PermissionKind newValue);
/// </summary> /// <summary>
partial void GetKind(ref global::Jellyfin.Data.Enums.PermissionKind result); /// When provided in a partial class, allows value of Kind to be changed before returning.
/// </summary>
/// <summary> partial void GetKind(ref Enums.PermissionKind result);
/// Required
/// </summary> /// <summary>
[Required] /// Required
public global::Jellyfin.Data.Enums.PermissionKind Kind /// </summary>
{ [Required]
get public Enums.PermissionKind Kind
{ {
global::Jellyfin.Data.Enums.PermissionKind value = _Kind; get
GetKind(ref value);
return (_Kind = value);
}
set
{
global::Jellyfin.Data.Enums.PermissionKind oldValue = _Kind;
SetKind(oldValue, ref value);
if (oldValue != value)
{ {
_Kind = value; Enums.PermissionKind value = _Kind;
OnPropertyChanged(); GetKind(ref value);
return (_Kind = value);
} }
} set
} {
Enums.PermissionKind oldValue = _Kind;
/// <summary> SetKind(oldValue, ref value);
/// Required if (oldValue != value)
/// </summary> {
[Required] _Kind = value;
public bool Value { get; set; } OnPropertyChanged();
}
/// <summary> }
/// Concurrency token }
/// </summary>
[Timestamp] /// <summary>
public Byte[] Timestamp { get; set; } /// Required
/// </summary>
/************************************************************************* [Required]
* Navigation properties public bool Value { get; set; }
*************************************************************************/
/// <summary>
public virtual event PropertyChangedEventHandler PropertyChanged; /// Required, ConcurrenyToken
/// </summary>
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) [ConcurrencyCheck]
{ [Required]
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); public uint RowVersion { get; set; }
}
public void OnSavingChanges()
} {
RowVersion++;
}
/*************************************************************************
* Navigation properties
*************************************************************************/
public virtual event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
} }

@ -1,40 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System;
namespace Jellyfin.Data.Enums
{
public enum PermissionKind : Int32
{
IsAdministrator,
IsHidden,
IsDisabled,
BlockUnrateditems,
EnbleSharedDeviceControl,
EnableRemoteAccess,
EnableLiveTvManagement,
EnableLiveTvAccess,
EnableMediaPlayback,
EnableAudioPlaybackTranscoding,
EnableVideoPlaybackTranscoding,
EnableContentDeletion,
EnableContentDownloading,
EnableSyncTranscoding,
EnableMediaConversion,
EnableAllDevices,
EnableAllChannels,
EnableAllFolders,
EnablePublicSharing,
AccessSchedules
}
}

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,292 +9,299 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Person [Table("Person")]
{ public partial class Person
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected Person() protected Person()
{ {
Sources = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MetadataProviderId>(); Sources = new HashSet<MetadataProviderId>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static Person CreatePersonUnsafe() public static Person CreatePersonUnsafe()
{ {
return new Person(); return new Person();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="urlid"></param> /// <param name="urlid"></param>
/// <param name="name"></param> /// <param name="name"></param>
public Person(Guid urlid, string name, DateTime dateadded, DateTime datemodified) public Person(Guid urlid, string name, DateTime dateadded, DateTime datemodified)
{ {
this.UrlId = urlid; this.UrlId = urlid;
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
this.Name = name; this.Name = name;
this.Sources = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MetadataProviderId>(); this.Sources = new HashSet<MetadataProviderId>();
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="urlid"></param> /// <param name="urlid"></param>
/// <param name="name"></param> /// <param name="name"></param>
public static Person Create(Guid urlid, string name, DateTime dateadded, DateTime datemodified) public static Person Create(Guid urlid, string name, DateTime dateadded, DateTime datemodified)
{ {
return new Person(urlid, name, dateadded, datemodified); return new Person(urlid, name, dateadded, datemodified);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/// <summary> /// <summary>
/// Backing field for Id /// Backing field for Id
/// </summary> /// </summary>
internal int _Id; internal int _Id;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Id to be changed before setting. /// When provided in a partial class, allows value of Id to be changed before setting.
/// </summary> /// </summary>
partial void SetId(int oldValue, ref int newValue); partial void SetId(int oldValue, ref int newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Id to be changed before returning. /// When provided in a partial class, allows value of Id to be changed before returning.
/// </summary> /// </summary>
partial void GetId(ref int result); partial void GetId(ref int result);
/// <summary> /// <summary>
/// Identity, Indexed, Required /// Identity, Indexed, Required
/// </summary> /// </summary>
[Key] [Key]
[Required] [Required]
public int Id [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
{ public int Id
get {
{ get
int value = _Id; {
GetId(ref value); int value = _Id;
return (_Id = value); GetId(ref value);
} return (_Id = value);
protected set }
{ protected set
int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for UrlId /// Backing field for UrlId
/// </summary> /// </summary>
protected Guid _UrlId; protected Guid _UrlId;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of UrlId to be changed before setting. /// When provided in a partial class, allows value of UrlId to be changed before setting.
/// </summary> /// </summary>
partial void SetUrlId(Guid oldValue, ref Guid newValue); partial void SetUrlId(Guid oldValue, ref Guid newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of UrlId to be changed before returning. /// When provided in a partial class, allows value of UrlId to be changed before returning.
/// </summary> /// </summary>
partial void GetUrlId(ref Guid result); partial void GetUrlId(ref Guid result);
/// <summary> /// <summary>
/// Required /// Required
/// </summary> /// </summary>
[Required] [Required]
public Guid UrlId public Guid UrlId
{ {
get get
{
Guid value = _UrlId;
GetUrlId(ref value);
return (_UrlId = value);
}
set
{
Guid oldValue = _UrlId;
SetUrlId(oldValue, ref value);
if (oldValue != value)
{ {
_UrlId = value; Guid value = _UrlId;
GetUrlId(ref value);
return (_UrlId = value);
} }
} set
} {
Guid oldValue = _UrlId;
SetUrlId(oldValue, ref value);
if (oldValue != value)
{
_UrlId = value;
}
}
}
/// <summary> /// <summary>
/// Backing field for Name /// Backing field for Name
/// </summary> /// </summary>
protected string _Name; protected string _Name;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Name to be changed before setting. /// When provided in a partial class, allows value of Name to be changed before setting.
/// </summary> /// </summary>
partial void SetName(string oldValue, ref string newValue); partial void SetName(string oldValue, ref string newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of Name to be changed before returning. /// When provided in a partial class, allows value of Name to be changed before returning.
/// </summary> /// </summary>
partial void GetName(ref string result); partial void GetName(ref string result);
/// <summary> /// <summary>
/// Required, Max length = 1024 /// Required, Max length = 1024
/// </summary> /// </summary>
[Required] [Required]
[MaxLength(1024)] [MaxLength(1024)]
[StringLength(1024)] [StringLength(1024)]
public string Name public string Name
{ {
get get
{ {
string value = _Name; string value = _Name;
GetName(ref value); GetName(ref value);
return (_Name = value); return (_Name = value);
} }
set set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for SourceId /// Backing field for SourceId
/// </summary> /// </summary>
protected string _SourceId; protected string _SourceId;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of SourceId to be changed before setting. /// When provided in a partial class, allows value of SourceId to be changed before setting.
/// </summary> /// </summary>
partial void SetSourceId(string oldValue, ref string newValue); partial void SetSourceId(string oldValue, ref string newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of SourceId to be changed before returning. /// When provided in a partial class, allows value of SourceId to be changed before returning.
/// </summary> /// </summary>
partial void GetSourceId(ref string result); partial void GetSourceId(ref string result);
/// <summary> /// <summary>
/// Max length = 255 /// Max length = 255
/// </summary> /// </summary>
[MaxLength(255)] [MaxLength(255)]
[StringLength(255)] [StringLength(255)]
public string SourceId public string SourceId
{ {
get get
{
string value = _SourceId;
GetSourceId(ref value);
return (_SourceId = value);
}
set
{
string oldValue = _SourceId;
SetSourceId(oldValue, ref value);
if (oldValue != value)
{ {
_SourceId = value; string value = _SourceId;
GetSourceId(ref value);
return (_SourceId = value);
} }
} set
} {
string oldValue = _SourceId;
SetSourceId(oldValue, ref value);
if (oldValue != value)
{
_SourceId = value;
}
}
}
/// <summary> /// <summary>
/// Backing field for DateAdded /// Backing field for DateAdded
/// </summary> /// </summary>
protected DateTime _DateAdded; protected DateTime _DateAdded;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of DateAdded to be changed before setting. /// When provided in a partial class, allows value of DateAdded to be changed before setting.
/// </summary> /// </summary>
partial void SetDateAdded(DateTime oldValue, ref DateTime newValue); partial void SetDateAdded(DateTime oldValue, ref DateTime newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of DateAdded to be changed before returning. /// When provided in a partial class, allows value of DateAdded to be changed before returning.
/// </summary> /// </summary>
partial void GetDateAdded(ref DateTime result); partial void GetDateAdded(ref DateTime result);
/// <summary> /// <summary>
/// Required /// Required
/// </summary> /// </summary>
[Required] [Required]
public DateTime DateAdded public DateTime DateAdded
{ {
get get
{ {
DateTime value = _DateAdded; DateTime value = _DateAdded;
GetDateAdded(ref value); GetDateAdded(ref value);
return (_DateAdded = value); return (_DateAdded = value);
} }
internal set internal set
{
DateTime oldValue = _DateAdded;
SetDateAdded(oldValue, ref value);
if (oldValue != value)
{ {
_DateAdded = value; DateTime oldValue = _DateAdded;
SetDateAdded(oldValue, ref value);
if (oldValue != value)
{
_DateAdded = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Backing field for DateModified /// Backing field for DateModified
/// </summary> /// </summary>
protected DateTime _DateModified; protected DateTime _DateModified;
/// <summary> /// <summary>
/// When provided in a partial class, allows value of DateModified to be changed before setting. /// When provided in a partial class, allows value of DateModified to be changed before setting.
/// </summary> /// </summary>
partial void SetDateModified(DateTime oldValue, ref DateTime newValue); partial void SetDateModified(DateTime oldValue, ref DateTime newValue);
/// <summary> /// <summary>
/// When provided in a partial class, allows value of DateModified to be changed before returning. /// When provided in a partial class, allows value of DateModified to be changed before returning.
/// </summary> /// </summary>
partial void GetDateModified(ref DateTime result); partial void GetDateModified(ref DateTime result);
/// <summary> /// <summary>
/// Required /// Required
/// </summary> /// </summary>
[Required] [Required]
public DateTime DateModified public DateTime DateModified
{ {
get get
{ {
DateTime value = _DateModified; DateTime value = _DateModified;
GetDateModified(ref value); GetDateModified(ref value);
return (_DateModified = value); return (_DateModified = value);
} }
internal set internal set
{
DateTime oldValue = _DateModified;
SetDateModified(oldValue, ref value);
if (oldValue != value)
{ {
_DateModified = value; DateTime oldValue = _DateModified;
SetDateModified(oldValue, ref value);
if (oldValue != value)
{
_DateModified = value;
}
} }
} }
}
/// <summary> /// <summary>
/// Required /// Required, ConcurrenyToken
/// </summary> /// </summary>
[ConcurrencyCheck] [ConcurrencyCheck]
[Required] [Required]
public byte[] Timestamp { get; set; } public uint RowVersion { get; set; }
/************************************************************************* public void OnSavingChanges()
* Navigation properties {
*************************************************************************/ RowVersion++;
}
public virtual ICollection<global::Jellyfin.Data.Entities.MetadataProviderId> Sources { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("MetadataProviderId_Sources_Id")]
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,195 +9,206 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class PersonRole [Table("PersonRole")]
{ public partial class PersonRole
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected PersonRole() /// </summary>
{ protected PersonRole()
// NOTE: This class has one-to-one associations with PersonRole. {
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. // NOTE: This class has one-to-one associations with PersonRole.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
Sources = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MetadataProviderId>();
Sources = new HashSet<MetadataProviderId>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static PersonRole CreatePersonRoleUnsafe() /// </summary>
{ public static PersonRole CreatePersonRoleUnsafe()
return new PersonRole(); {
} return new PersonRole();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="type"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="type"></param>
public PersonRole(global::Jellyfin.Data.Enums.PersonRoleType type, global::Jellyfin.Data.Entities.Metadata _metadata0) /// <param name="_metadata0"></param>
{ public PersonRole(Enums.PersonRoleType type, Metadata _metadata0)
// NOTE: This class has one-to-one associations with PersonRole. {
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. // NOTE: This class has one-to-one associations with PersonRole.
// One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other.
this.Type = type;
this.Type = type;
if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.PersonRoles.Add(this); if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.PersonRoles.Add(this);
this.Sources = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MetadataProviderId>();
this.Sources = new HashSet<MetadataProviderId>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="type"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="type"></param>
public static PersonRole Create(global::Jellyfin.Data.Enums.PersonRoleType type, global::Jellyfin.Data.Entities.Metadata _metadata0) /// <param name="_metadata0"></param>
{ public static PersonRole Create(Enums.PersonRoleType type, Metadata _metadata0)
return new PersonRole(type, _metadata0); {
} return new PersonRole(type, _metadata0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for Role
/// </summary>
protected string _Role;
/// <summary>
/// When provided in a partial class, allows value of Role to be changed before setting.
/// </summary>
partial void SetRole(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Role to be changed before returning.
/// </summary>
partial void GetRole(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Role
{
get
{ {
_Id = value; string value = _Role;
GetRole(ref value);
return (_Role = value);
} }
} set
}
/// <summary>
/// Backing field for Role
/// </summary>
protected string _Role;
/// <summary>
/// When provided in a partial class, allows value of Role to be changed before setting.
/// </summary>
partial void SetRole(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Role to be changed before returning.
/// </summary>
partial void GetRole(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Role
{
get
{
string value = _Role;
GetRole(ref value);
return (_Role = value);
}
set
{
string oldValue = _Role;
SetRole(oldValue, ref value);
if (oldValue != value)
{ {
_Role = value; string oldValue = _Role;
SetRole(oldValue, ref value);
if (oldValue != value)
{
_Role = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Type
/// Backing field for Type /// </summary>
/// </summary> protected Enums.PersonRoleType _Type;
protected global::Jellyfin.Data.Enums.PersonRoleType _Type; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Type to be changed before setting.
/// When provided in a partial class, allows value of Type to be changed before setting. /// </summary>
/// </summary> partial void SetType(Enums.PersonRoleType oldValue, ref Enums.PersonRoleType newValue);
partial void SetType(global::Jellyfin.Data.Enums.PersonRoleType oldValue, ref global::Jellyfin.Data.Enums.PersonRoleType newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Type to be changed before returning.
/// When provided in a partial class, allows value of Type to be changed before returning. /// </summary>
/// </summary> partial void GetType(ref Enums.PersonRoleType result);
partial void GetType(ref global::Jellyfin.Data.Enums.PersonRoleType result);
/// <summary>
/// <summary> /// Required
/// Required /// </summary>
/// </summary> [Required]
[Required] public Enums.PersonRoleType Type
public global::Jellyfin.Data.Enums.PersonRoleType Type {
{ get
get
{
global::Jellyfin.Data.Enums.PersonRoleType value = _Type;
GetType(ref value);
return (_Type = value);
}
set
{
global::Jellyfin.Data.Enums.PersonRoleType oldValue = _Type;
SetType(oldValue, ref value);
if (oldValue != value)
{ {
_Type = value; Enums.PersonRoleType value = _Type;
GetType(ref value);
return (_Type = value);
} }
} set
} {
Enums.PersonRoleType oldValue = _Type;
SetType(oldValue, ref value);
if (oldValue != value)
{
_Type = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
public void OnSavingChanges()
{
RowVersion++;
}
/// <summary> /*************************************************************************
/// Required * Navigation properties
/// </summary> *************************************************************************/
[ConcurrencyCheck]
[Required]
public byte[] Timestamp { get; set; }
/************************************************************************* /// <summary>
* Navigation properties /// Required
*************************************************************************/ /// </summary>
[ForeignKey("Person_Id")]
/// <summary> public virtual Person Person { get; set; }
/// Required
/// </summary>
public virtual global::Jellyfin.Data.Entities.Person Person { get; set; }
public virtual global::Jellyfin.Data.Entities.Artwork Artwork { get; set; } [ForeignKey("Artwork_Artwork_Id")]
public virtual Artwork Artwork { get; set; }
public virtual ICollection<global::Jellyfin.Data.Entities.MetadataProviderId> Sources { get; protected set; } [ForeignKey("MetadataProviderId_Sources_Id")]
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,64 +9,66 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Photo: global::Jellyfin.Data.Entities.LibraryItem [Table("Photo")]
{ public partial class Photo : LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
protected Photo(): base()
{
PhotoMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.PhotoMetadata>();
Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>();
Init(); /// <summary>
} /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary>
protected Photo() : base()
{
PhotoMetadata = new HashSet<PhotoMetadata>();
Releases = new HashSet<Release>();
/// <summary> Init();
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. }
/// </summary>
public static Photo CreatePhotoUnsafe()
{
return new Photo();
}
/// <summary> /// <summary>
/// Public constructor with required data /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> public static Photo CreatePhotoUnsafe()
public Photo(Guid urlid, DateTime dateadded) {
{ return new Photo();
this.UrlId = urlid; }
this.PhotoMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.PhotoMetadata>(); /// <summary>
this.Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>(); /// Public constructor with required data
/// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public Photo(Guid urlid, DateTime dateadded)
{
this.UrlId = urlid;
Init(); this.PhotoMetadata = new HashSet<PhotoMetadata>();
} this.Releases = new HashSet<Release>();
/// <summary> Init();
/// Static create function (for use in LINQ queries, etc.) }
/// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Photo Create(Guid urlid, DateTime dateadded)
{
return new Photo(urlid, dateadded);
}
/************************************************************************* /// <summary>
* Properties /// Static create function (for use in LINQ queries, etc.)
*************************************************************************/ /// </summary>
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Photo Create(Guid urlid, DateTime dateadded)
{
return new Photo(urlid, dateadded);
}
/************************************************************************* /*************************************************************************
* Navigation properties * Properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.PhotoMetadata> PhotoMetadata { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("PhotoMetadata_PhotoMetadata_Id")]
public virtual ICollection<PhotoMetadata> PhotoMetadata { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Release> Releases { get; protected set; } [ForeignKey("Release_Releases_Id")]
public virtual ICollection<Release> Releases { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,66 +9,67 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class PhotoMetadata: global::Jellyfin.Data.Entities.Metadata [Table("PhotoMetadata")]
{ public partial class PhotoMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected PhotoMetadata(): base() protected PhotoMetadata() : base()
{ {
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static PhotoMetadata CreatePhotoMetadataUnsafe() public static PhotoMetadata CreatePhotoMetadataUnsafe()
{ {
return new PhotoMetadata(); return new PhotoMetadata();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_photo0"></param> /// <param name="_photo0"></param>
public PhotoMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Photo _photo0) public PhotoMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Photo _photo0)
{ {
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title; this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language)); if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; this.Language = language;
if (_photo0 == null) throw new ArgumentNullException(nameof(_photo0)); if (_photo0 == null) throw new ArgumentNullException(nameof(_photo0));
_photo0.PhotoMetadata.Add(this); _photo0.PhotoMetadata.Add(this);
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_photo0"></param> /// <param name="_photo0"></param>
public static PhotoMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Photo _photo0) public static PhotoMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Photo _photo0)
{ {
return new PhotoMetadata(title, language, dateadded, datemodified, _photo0); return new PhotoMetadata(title, language, dateadded, datemodified, _photo0);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,97 +9,105 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Preference [Table("Preference")]
{ public partial class Preference
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Preference() /// </summary>
{ protected Preference()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Preference CreatePreferenceUnsafe() /// </summary>
{ public static Preference CreatePreferenceUnsafe()
return new Preference(); {
} return new Preference();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="kind"></param> /// </summary>
/// <param name="value"></param> /// <param name="kind"></param>
/// <param name="_user0"></param> /// <param name="value"></param>
/// <param name="_group1"></param> /// <param name="_user0"></param>
public Preference(global::Jellyfin.Data.Enums.PreferenceKind kind, string value, global::Jellyfin.Data.Entities.User _user0, global::Jellyfin.Data.Entities.Group _group1) /// <param name="_group1"></param>
{ public Preference(Enums.PreferenceKind kind, string value, User _user0, Group _group1)
this.Kind = kind; {
this.Kind = kind;
if (string.IsNullOrEmpty(value)) throw new ArgumentNullException(nameof(value));
this.Value = value; if (string.IsNullOrEmpty(value)) throw new ArgumentNullException(nameof(value));
this.Value = value;
if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.Preferences.Add(this); if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.Preferences.Add(this);
if (_group1 == null) throw new ArgumentNullException(nameof(_group1));
_group1.Preferences.Add(this); if (_group1 == null) throw new ArgumentNullException(nameof(_group1));
_group1.Preferences.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="kind"></param> /// </summary>
/// <param name="value"></param> /// <param name="kind"></param>
/// <param name="_user0"></param> /// <param name="value"></param>
/// <param name="_group1"></param> /// <param name="_user0"></param>
public static Preference Create(global::Jellyfin.Data.Enums.PreferenceKind kind, string value, global::Jellyfin.Data.Entities.User _user0, global::Jellyfin.Data.Entities.Group _group1) /// <param name="_group1"></param>
{ public static Preference Create(Enums.PreferenceKind kind, string value, User _user0, Group _group1)
return new Preference(kind, value, _user0, _group1); {
} return new Preference(kind, value, _user0, _group1);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id { get; protected set; } [Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
/// <summary> public int Id { get; protected set; }
/// Required
/// </summary> /// <summary>
[Required] /// Required
public global::Jellyfin.Data.Enums.PreferenceKind Kind { get; set; } /// </summary>
[Required]
/// <summary> public Enums.PreferenceKind Kind { get; set; }
/// Required, Max length = 65535
/// </summary> /// <summary>
[Required] /// Required, Max length = 65535
[MaxLength(65535)] /// </summary>
[StringLength(65535)] [Required]
public string Value { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string Value { get; set; }
/// Concurrency token
/// </summary> /// <summary>
[Timestamp] /// Required, ConcurrenyToken
public Byte[] Timestamp { get; set; } /// </summary>
[ConcurrencyCheck]
/************************************************************************* [Required]
* Navigation properties public uint RowVersion { get; set; }
*************************************************************************/
public void OnSavingChanges()
} {
RowVersion++;
}
/*************************************************************************
* Navigation properties
*************************************************************************/
}
} }

@ -1,27 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System;
namespace Jellyfin.Data.Enums
{
public enum PreferenceKind : Int32
{
MaxParentalRating,
BlockedTags,
RemoteClientBitrateLimit,
EnabledDevices,
EnabledChannels,
EnabledFolders,
EnableContentDeletionFromFolders
}
}

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,113 +9,121 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class ProviderMapping [Table("ProviderMapping")]
{ public partial class ProviderMapping
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected ProviderMapping() /// </summary>
{ protected ProviderMapping()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static ProviderMapping CreateProviderMappingUnsafe() /// </summary>
{ public static ProviderMapping CreateProviderMappingUnsafe()
return new ProviderMapping(); {
} return new ProviderMapping();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="providername"></param> /// </summary>
/// <param name="providersecrets"></param> /// <param name="providername"></param>
/// <param name="providerdata"></param> /// <param name="providersecrets"></param>
/// <param name="_user0"></param> /// <param name="providerdata"></param>
/// <param name="_group1"></param> /// <param name="_user0"></param>
public ProviderMapping(string providername, string providersecrets, string providerdata, global::Jellyfin.Data.Entities.User _user0, global::Jellyfin.Data.Entities.Group _group1) /// <param name="_group1"></param>
{ public ProviderMapping(string providername, string providersecrets, string providerdata, User _user0, Group _group1)
if (string.IsNullOrEmpty(providername)) throw new ArgumentNullException(nameof(providername)); {
this.ProviderName = providername; if (string.IsNullOrEmpty(providername)) throw new ArgumentNullException(nameof(providername));
this.ProviderName = providername;
if (string.IsNullOrEmpty(providersecrets)) throw new ArgumentNullException(nameof(providersecrets));
this.ProviderSecrets = providersecrets; if (string.IsNullOrEmpty(providersecrets)) throw new ArgumentNullException(nameof(providersecrets));
this.ProviderSecrets = providersecrets;
if (string.IsNullOrEmpty(providerdata)) throw new ArgumentNullException(nameof(providerdata));
this.ProviderData = providerdata; if (string.IsNullOrEmpty(providerdata)) throw new ArgumentNullException(nameof(providerdata));
this.ProviderData = providerdata;
if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.ProviderMappings.Add(this); if (_user0 == null) throw new ArgumentNullException(nameof(_user0));
_user0.ProviderMappings.Add(this);
if (_group1 == null) throw new ArgumentNullException(nameof(_group1));
_group1.ProviderMappings.Add(this); if (_group1 == null) throw new ArgumentNullException(nameof(_group1));
_group1.ProviderMappings.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="providername"></param> /// </summary>
/// <param name="providersecrets"></param> /// <param name="providername"></param>
/// <param name="providerdata"></param> /// <param name="providersecrets"></param>
/// <param name="_user0"></param> /// <param name="providerdata"></param>
/// <param name="_group1"></param> /// <param name="_user0"></param>
public static ProviderMapping Create(string providername, string providersecrets, string providerdata, global::Jellyfin.Data.Entities.User _user0, global::Jellyfin.Data.Entities.Group _group1) /// <param name="_group1"></param>
{ public static ProviderMapping Create(string providername, string providersecrets, string providerdata, User _user0, Group _group1)
return new ProviderMapping(providername, providersecrets, providerdata, _user0, _group1); {
} return new ProviderMapping(providername, providersecrets, providerdata, _user0, _group1);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id { get; protected set; } [Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
/// <summary> public int Id { get; protected set; }
/// Required, Max length = 255
/// </summary> /// <summary>
[Required] /// Required, Max length = 255
[MaxLength(255)] /// </summary>
[StringLength(255)] [Required]
public string ProviderName { get; set; } [MaxLength(255)]
[StringLength(255)]
/// <summary> public string ProviderName { get; set; }
/// Required, Max length = 65535
/// </summary> /// <summary>
[Required] /// Required, Max length = 65535
[MaxLength(65535)] /// </summary>
[StringLength(65535)] [Required]
public string ProviderSecrets { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string ProviderSecrets { get; set; }
/// Required, Max length = 65535
/// </summary> /// <summary>
[Required] /// Required, Max length = 65535
[MaxLength(65535)] /// </summary>
[StringLength(65535)] [Required]
public string ProviderData { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string ProviderData { get; set; }
/// Concurrency token
/// </summary> /// <summary>
[Timestamp] /// Required, ConcurrenyToken
public Byte[] Timestamp { get; set; } /// </summary>
[ConcurrencyCheck]
/************************************************************************* [Required]
* Navigation properties public uint RowVersion { get; set; }
*************************************************************************/
public void OnSavingChanges()
} {
RowVersion++;
}
/*************************************************************************
* Navigation properties
*************************************************************************/
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,177 +9,185 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Rating [Table("Rating")]
{ public partial class Rating
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Rating() /// </summary>
{ protected Rating()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Rating CreateRatingUnsafe() /// </summary>
{ public static Rating CreateRatingUnsafe()
return new Rating(); {
} return new Rating();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="value"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="value"></param>
public Rating(double value, global::Jellyfin.Data.Entities.Metadata _metadata0) /// <param name="_metadata0"></param>
{ public Rating(double value, Metadata _metadata0)
this.Value = value; {
this.Value = value;
if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Ratings.Add(this); if (_metadata0 == null) throw new ArgumentNullException(nameof(_metadata0));
_metadata0.Ratings.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="value"></param> /// </summary>
/// <param name="_metadata0"></param> /// <param name="value"></param>
public static Rating Create(double value, global::Jellyfin.Data.Entities.Metadata _metadata0) /// <param name="_metadata0"></param>
{ public static Rating Create(double value, Metadata _metadata0)
return new Rating(value, _metadata0); {
} return new Rating(value, _metadata0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value); {
return (_Id = value); int value = _Id;
} GetId(ref value);
protected set return (_Id = value);
{ }
int oldValue = _Id; protected set
SetId(oldValue, ref value); {
if (oldValue != value) int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
}
}
/// <summary>
/// Backing field for Value
/// </summary>
protected double _Value;
/// <summary>
/// When provided in a partial class, allows value of Value to be changed before setting.
/// </summary>
partial void SetValue(double oldValue, ref double newValue);
/// <summary>
/// When provided in a partial class, allows value of Value to be changed before returning.
/// </summary>
partial void GetValue(ref double result);
/// <summary>
/// Required
/// </summary>
[Required]
public double Value
{
get
{
double value = _Value;
GetValue(ref value);
return (_Value = value);
}
set
{ {
_Id = value; double oldValue = _Value;
SetValue(oldValue, ref value);
if (oldValue != value)
{
_Value = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Votes
/// Backing field for Value /// </summary>
/// </summary> protected int? _Votes;
protected double _Value; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Votes to be changed before setting.
/// When provided in a partial class, allows value of Value to be changed before setting. /// </summary>
/// </summary> partial void SetVotes(int? oldValue, ref int? newValue);
partial void SetValue(double oldValue, ref double newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Votes to be changed before returning.
/// When provided in a partial class, allows value of Value to be changed before returning. /// </summary>
/// </summary> partial void GetVotes(ref int? result);
partial void GetValue(ref double result);
public int? Votes
/// <summary> {
/// Required get
/// </summary>
[Required]
public double Value
{
get
{
double value = _Value;
GetValue(ref value);
return (_Value = value);
}
set
{
double oldValue = _Value;
SetValue(oldValue, ref value);
if (oldValue != value)
{ {
_Value = value; int? value = _Votes;
GetVotes(ref value);
return (_Votes = value);
} }
} set
}
/// <summary>
/// Backing field for Votes
/// </summary>
protected int? _Votes;
/// <summary>
/// When provided in a partial class, allows value of Votes to be changed before setting.
/// </summary>
partial void SetVotes(int? oldValue, ref int? newValue);
/// <summary>
/// When provided in a partial class, allows value of Votes to be changed before returning.
/// </summary>
partial void GetVotes(ref int? result);
public int? Votes
{
get
{
int? value = _Votes;
GetVotes(ref value);
return (_Votes = value);
}
set
{
int? oldValue = _Votes;
SetVotes(oldValue, ref value);
if (oldValue != value)
{ {
_Votes = value; int? oldValue = _Votes;
SetVotes(oldValue, ref value);
if (oldValue != value)
{
_Votes = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Required, ConcurrenyToken
/// Required /// </summary>
/// </summary> [ConcurrencyCheck]
[ConcurrencyCheck] [Required]
[Required] public uint RowVersion { get; set; }
public byte[] Timestamp { get; set; }
public void OnSavingChanges()
/************************************************************************* {
* Navigation properties RowVersion++;
*************************************************************************/ }
/// <summary> /*************************************************************************
/// If this is NULL it&apos;s the internal user rating. * Navigation properties
/// </summary> *************************************************************************/
public virtual global::Jellyfin.Data.Entities.RatingSource RatingType { get; set; }
/// <summary>
} /// If this is NULL it&apos;s the internal user rating.
/// </summary>
[ForeignKey("RatingSource_RatingType_Id")]
public virtual RatingSource RatingType { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,222 +9,229 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
/// <summary> /// <summary>
/// This is the entity to store review ratings, not age ratings /// This is the entity to store review ratings, not age ratings
/// </summary> /// </summary>
public partial class RatingSource [Table("RatingSource")]
{ public partial class RatingSource
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected RatingSource() /// </summary>
{ protected RatingSource()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static RatingSource CreateRatingSourceUnsafe() /// </summary>
{ public static RatingSource CreateRatingSourceUnsafe()
return new RatingSource(); {
} return new RatingSource();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="maximumvalue"></param> /// </summary>
/// <param name="minimumvalue"></param> /// <param name="maximumvalue"></param>
/// <param name="_rating0"></param> /// <param name="minimumvalue"></param>
public RatingSource(double maximumvalue, double minimumvalue, global::Jellyfin.Data.Entities.Rating _rating0) /// <param name="_rating0"></param>
{ public RatingSource(double maximumvalue, double minimumvalue, Rating _rating0)
this.MaximumValue = maximumvalue; {
this.MaximumValue = maximumvalue;
this.MinimumValue = minimumvalue;
this.MinimumValue = minimumvalue;
if (_rating0 == null) throw new ArgumentNullException(nameof(_rating0));
_rating0.RatingType = this; if (_rating0 == null) throw new ArgumentNullException(nameof(_rating0));
_rating0.RatingType = this;
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="maximumvalue"></param> /// </summary>
/// <param name="minimumvalue"></param> /// <param name="maximumvalue"></param>
/// <param name="_rating0"></param> /// <param name="minimumvalue"></param>
public static RatingSource Create(double maximumvalue, double minimumvalue, global::Jellyfin.Data.Entities.Rating _rating0) /// <param name="_rating0"></param>
{ public static RatingSource Create(double maximumvalue, double minimumvalue, Rating _rating0)
return new RatingSource(maximumvalue, minimumvalue, _rating0); {
} return new RatingSource(maximumvalue, minimumvalue, _rating0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value);
return (_Id = value);
}
protected set
{
int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int value = _Id;
GetId(ref value);
return (_Id = value);
} }
} protected set
}
/// <summary>
/// Backing field for Name
/// </summary>
protected string _Name;
/// <summary>
/// When provided in a partial class, allows value of Name to be changed before setting.
/// </summary>
partial void SetName(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Name to be changed before returning.
/// </summary>
partial void GetName(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Name
{
get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Name
/// Backing field for MaximumValue /// </summary>
/// </summary> protected string _Name;
protected double _MaximumValue; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before setting.
/// When provided in a partial class, allows value of MaximumValue to be changed before setting. /// </summary>
/// </summary> partial void SetName(string oldValue, ref string newValue);
partial void SetMaximumValue(double oldValue, ref double newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Name to be changed before returning.
/// When provided in a partial class, allows value of MaximumValue to be changed before returning. /// </summary>
/// </summary> partial void GetName(ref string result);
partial void GetMaximumValue(ref double result);
/// <summary>
/// <summary> /// Max length = 1024
/// Required /// </summary>
/// </summary> [MaxLength(1024)]
[Required] [StringLength(1024)]
public double MaximumValue public string Name
{ {
get get
{
double value = _MaximumValue;
GetMaximumValue(ref value);
return (_MaximumValue = value);
}
set
{
double oldValue = _MaximumValue;
SetMaximumValue(oldValue, ref value);
if (oldValue != value)
{ {
_MaximumValue = value; string value = _Name;
GetName(ref value);
return (_Name = value);
} }
} set
}
/// <summary>
/// Backing field for MinimumValue
/// </summary>
protected double _MinimumValue;
/// <summary>
/// When provided in a partial class, allows value of MinimumValue to be changed before setting.
/// </summary>
partial void SetMinimumValue(double oldValue, ref double newValue);
/// <summary>
/// When provided in a partial class, allows value of MinimumValue to be changed before returning.
/// </summary>
partial void GetMinimumValue(ref double result);
/// <summary>
/// Required
/// </summary>
[Required]
public double MinimumValue
{
get
{
double value = _MinimumValue;
GetMinimumValue(ref value);
return (_MinimumValue = value);
}
set
{
double oldValue = _MinimumValue;
SetMinimumValue(oldValue, ref value);
if (oldValue != value)
{ {
_MinimumValue = value; string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for MaximumValue
/// Required /// </summary>
/// </summary> protected double _MaximumValue;
[ConcurrencyCheck] /// <summary>
[Required] /// When provided in a partial class, allows value of MaximumValue to be changed before setting.
public byte[] Timestamp { get; set; } /// </summary>
partial void SetMaximumValue(double oldValue, ref double newValue);
/************************************************************************* /// <summary>
* Navigation properties /// When provided in a partial class, allows value of MaximumValue to be changed before returning.
*************************************************************************/ /// </summary>
partial void GetMaximumValue(ref double result);
public virtual global::Jellyfin.Data.Entities.MetadataProviderId Source { get; set; }
/// <summary>
} /// Required
/// </summary>
[Required]
public double MaximumValue
{
get
{
double value = _MaximumValue;
GetMaximumValue(ref value);
return (_MaximumValue = value);
}
set
{
double oldValue = _MaximumValue;
SetMaximumValue(oldValue, ref value);
if (oldValue != value)
{
_MaximumValue = value;
}
}
}
/// <summary>
/// Backing field for MinimumValue
/// </summary>
protected double _MinimumValue;
/// <summary>
/// When provided in a partial class, allows value of MinimumValue to be changed before setting.
/// </summary>
partial void SetMinimumValue(double oldValue, ref double newValue);
/// <summary>
/// When provided in a partial class, allows value of MinimumValue to be changed before returning.
/// </summary>
partial void GetMinimumValue(ref double result);
/// <summary>
/// Required
/// </summary>
[Required]
public double MinimumValue
{
get
{
double value = _MinimumValue;
GetMinimumValue(ref value);
return (_MinimumValue = value);
}
set
{
double oldValue = _MinimumValue;
SetMinimumValue(oldValue, ref value);
if (oldValue != value)
{
_MinimumValue = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
public void OnSavingChanges()
{
RowVersion++;
}
/*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("MetadataProviderId_Source_Id")]
public virtual MetadataProviderId Source { get; set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,177 +9,185 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Release [Table("Release")]
{ public partial class Release
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Release() /// </summary>
{ protected Release()
MediaFiles = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MediaFile>(); {
Chapters = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Chapter>(); MediaFiles = new HashSet<MediaFile>();
Chapters = new HashSet<Chapter>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Release CreateReleaseUnsafe() /// </summary>
{ public static Release CreateReleaseUnsafe()
return new Release(); {
} return new Release();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="name"></param> /// </summary>
/// <param name="_movie0"></param> /// <param name="name"></param>
/// <param name="_episode1"></param> /// <param name="_movie0"></param>
/// <param name="_track2"></param> /// <param name="_episode1"></param>
/// <param name="_customitem3"></param> /// <param name="_track2"></param>
/// <param name="_book4"></param> /// <param name="_customitem3"></param>
/// <param name="_photo5"></param> /// <param name="_book4"></param>
public Release(string name, global::Jellyfin.Data.Entities.Movie _movie0, global::Jellyfin.Data.Entities.Episode _episode1, global::Jellyfin.Data.Entities.Track _track2, global::Jellyfin.Data.Entities.CustomItem _customitem3, global::Jellyfin.Data.Entities.Book _book4, global::Jellyfin.Data.Entities.Photo _photo5) /// <param name="_photo5"></param>
{ public Release(string name, Movie _movie0, Episode _episode1, Track _track2, CustomItem _customitem3, Book _book4, Photo _photo5)
if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); {
this.Name = name; if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
this.Name = name;
if (_movie0 == null) throw new ArgumentNullException(nameof(_movie0));
_movie0.Releases.Add(this); if (_movie0 == null) throw new ArgumentNullException(nameof(_movie0));
_movie0.Releases.Add(this);
if (_episode1 == null) throw new ArgumentNullException(nameof(_episode1));
_episode1.Releases.Add(this); if (_episode1 == null) throw new ArgumentNullException(nameof(_episode1));
_episode1.Releases.Add(this);
if (_track2 == null) throw new ArgumentNullException(nameof(_track2));
_track2.Releases.Add(this); if (_track2 == null) throw new ArgumentNullException(nameof(_track2));
_track2.Releases.Add(this);
if (_customitem3 == null) throw new ArgumentNullException(nameof(_customitem3));
_customitem3.Releases.Add(this); if (_customitem3 == null) throw new ArgumentNullException(nameof(_customitem3));
_customitem3.Releases.Add(this);
if (_book4 == null) throw new ArgumentNullException(nameof(_book4));
_book4.Releases.Add(this); if (_book4 == null) throw new ArgumentNullException(nameof(_book4));
_book4.Releases.Add(this);
if (_photo5 == null) throw new ArgumentNullException(nameof(_photo5));
_photo5.Releases.Add(this); if (_photo5 == null) throw new ArgumentNullException(nameof(_photo5));
_photo5.Releases.Add(this);
this.MediaFiles = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.MediaFile>();
this.Chapters = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Chapter>(); this.MediaFiles = new HashSet<MediaFile>();
this.Chapters = new HashSet<Chapter>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="name"></param> /// </summary>
/// <param name="_movie0"></param> /// <param name="name"></param>
/// <param name="_episode1"></param> /// <param name="_movie0"></param>
/// <param name="_track2"></param> /// <param name="_episode1"></param>
/// <param name="_customitem3"></param> /// <param name="_track2"></param>
/// <param name="_book4"></param> /// <param name="_customitem3"></param>
/// <param name="_photo5"></param> /// <param name="_book4"></param>
public static Release Create(string name, global::Jellyfin.Data.Entities.Movie _movie0, global::Jellyfin.Data.Entities.Episode _episode1, global::Jellyfin.Data.Entities.Track _track2, global::Jellyfin.Data.Entities.CustomItem _customitem3, global::Jellyfin.Data.Entities.Book _book4, global::Jellyfin.Data.Entities.Photo _photo5) /// <param name="_photo5"></param>
{ public static Release Create(string name, Movie _movie0, Episode _episode1, Track _track2, CustomItem _customitem3, Book _book4, Photo _photo5)
return new Release(name, _movie0, _episode1, _track2, _customitem3, _book4, _photo5); {
} return new Release(name, _movie0, _episode1, _track2, _customitem3, _book4, _photo5);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Id /// <summary>
/// </summary> /// Backing field for Id
internal int _Id; /// </summary>
/// <summary> internal int _Id;
/// When provided in a partial class, allows value of Id to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before setting.
partial void SetId(int oldValue, ref int newValue); /// </summary>
/// <summary> partial void SetId(int oldValue, ref int newValue);
/// When provided in a partial class, allows value of Id to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Id to be changed before returning.
partial void GetId(ref int result); /// </summary>
partial void GetId(ref int result);
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public int Id [Required]
{ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
get public int Id
{ {
int value = _Id; get
GetId(ref value);
return (_Id = value);
}
protected set
{
int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{ {
_Id = value; int value = _Id;
GetId(ref value);
return (_Id = value);
} }
} protected set
}
/// <summary>
/// Backing field for Name
/// </summary>
protected string _Name;
/// <summary>
/// When provided in a partial class, allows value of Name to be changed before setting.
/// </summary>
partial void SetName(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Name to be changed before returning.
/// </summary>
partial void GetName(ref string result);
/// <summary>
/// Required, Max length = 1024
/// </summary>
[Required]
[MaxLength(1024)]
[StringLength(1024)]
public string Name
{
get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{ {
_Name = value; int oldValue = _Id;
SetId(oldValue, ref value);
if (oldValue != value)
{
_Id = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Name
/// Required /// </summary>
/// </summary> protected string _Name;
[ConcurrencyCheck] /// <summary>
[Required] /// When provided in a partial class, allows value of Name to be changed before setting.
public byte[] Timestamp { get; set; } /// </summary>
partial void SetName(string oldValue, ref string newValue);
/************************************************************************* /// <summary>
* Navigation properties /// When provided in a partial class, allows value of Name to be changed before returning.
*************************************************************************/ /// </summary>
partial void GetName(ref string result);
public virtual ICollection<global::Jellyfin.Data.Entities.MediaFile> MediaFiles { get; protected set; }
/// <summary>
public virtual ICollection<global::Jellyfin.Data.Entities.Chapter> Chapters { get; protected set; } /// Required, Max length = 1024
/// </summary>
} [Required]
[MaxLength(1024)]
[StringLength(1024)]
public string Name
{
get
{
string value = _Name;
GetName(ref value);
return (_Name = value);
}
set
{
string oldValue = _Name;
SetName(oldValue, ref value);
if (oldValue != value)
{
_Name = value;
}
}
}
/// <summary>
/// Required, ConcurrenyToken
/// </summary>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
public void OnSavingChanges()
{
RowVersion++;
}
/*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("MediaFile_MediaFiles_Id")]
public virtual ICollection<MediaFile> MediaFiles { get; protected set; }
[ForeignKey("Chapter_Chapters_Id")]
public virtual ICollection<Chapter> Chapters { get; protected set; }
}
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,107 +9,109 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Season: global::Jellyfin.Data.Entities.LibraryItem [Table("Season")]
{ public partial class Season : LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Season(): base() /// </summary>
{ protected Season() : base()
// 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. // 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.
SeasonMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.SeasonMetadata>();
Episodes = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Episode>(); SeasonMetadata = new HashSet<SeasonMetadata>();
Episodes = new HashSet<Episode>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Season CreateSeasonUnsafe() /// </summary>
{ public static Season CreateSeasonUnsafe()
return new Season(); {
} return new Season();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
/// <param name="_series0"></param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public Season(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.Series _series0) /// <param name="_series0"></param>
{ public Season(Guid urlid, DateTime dateadded, Series _series0)
// 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. // 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.
this.UrlId = urlid;
this.UrlId = urlid;
if (_series0 == null) throw new ArgumentNullException(nameof(_series0));
_series0.Seasons.Add(this); if (_series0 == null) throw new ArgumentNullException(nameof(_series0));
_series0.Seasons.Add(this);
this.SeasonMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.SeasonMetadata>();
this.Episodes = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Episode>(); this.SeasonMetadata = new HashSet<SeasonMetadata>();
this.Episodes = new HashSet<Episode>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
/// <param name="_series0"></param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Season Create(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.Series _series0) /// <param name="_series0"></param>
{ public static Season Create(Guid urlid, DateTime dateadded, Series _series0)
return new Season(urlid, dateadded, _series0); {
} return new Season(urlid, dateadded, _series0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for SeasonNumber /// <summary>
/// </summary> /// Backing field for SeasonNumber
protected int? _SeasonNumber; /// </summary>
/// <summary> protected int? _SeasonNumber;
/// When provided in a partial class, allows value of SeasonNumber to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of SeasonNumber to be changed before setting.
partial void SetSeasonNumber(int? oldValue, ref int? newValue); /// </summary>
/// <summary> partial void SetSeasonNumber(int? oldValue, ref int? newValue);
/// When provided in a partial class, allows value of SeasonNumber to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of SeasonNumber to be changed before returning.
partial void GetSeasonNumber(ref int? result); /// </summary>
partial void GetSeasonNumber(ref int? result);
public int? SeasonNumber
{ public int? SeasonNumber
get {
{ get
int? value = _SeasonNumber;
GetSeasonNumber(ref value);
return (_SeasonNumber = value);
}
set
{
int? oldValue = _SeasonNumber;
SetSeasonNumber(oldValue, ref value);
if (oldValue != value)
{ {
_SeasonNumber = value; int? value = _SeasonNumber;
GetSeasonNumber(ref value);
return (_SeasonNumber = value);
} }
} set
} {
int? oldValue = _SeasonNumber;
/************************************************************************* SetSeasonNumber(oldValue, ref value);
* Navigation properties if (oldValue != value)
*************************************************************************/ {
_SeasonNumber = value;
}
}
}
public virtual ICollection<global::Jellyfin.Data.Entities.SeasonMetadata> SeasonMetadata { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("SeasonMetadata_SeasonMetadata_Id")]
public virtual ICollection<SeasonMetadata> SeasonMetadata { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Episode> Episodes { get; protected set; } [ForeignKey("Episode_Episodes_Id")]
public virtual ICollection<Episode> Episodes { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,103 +9,104 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class SeasonMetadata: global::Jellyfin.Data.Entities.Metadata [Table("SeasonMetadata")]
{ public partial class SeasonMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected SeasonMetadata(): base() /// </summary>
{ protected SeasonMetadata() : base()
Init(); {
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static SeasonMetadata CreateSeasonMetadataUnsafe() /// </summary>
{ public static SeasonMetadata CreateSeasonMetadataUnsafe()
return new SeasonMetadata(); {
} return new SeasonMetadata();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_season0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public SeasonMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Season _season0) /// <param name="_season0"></param>
{ public SeasonMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Season _season0)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
if (_season0 == null) throw new ArgumentNullException(nameof(_season0));
_season0.SeasonMetadata.Add(this); if (_season0 == null) throw new ArgumentNullException(nameof(_season0));
_season0.SeasonMetadata.Add(this);
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_season0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public static SeasonMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Season _season0) /// <param name="_season0"></param>
{ public static SeasonMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Season _season0)
return new SeasonMetadata(title, language, dateadded, datemodified, _season0); {
} return new SeasonMetadata(title, language, dateadded, datemodified, _season0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Outline /// <summary>
/// </summary> /// Backing field for Outline
protected string _Outline; /// </summary>
/// <summary> protected string _Outline;
/// When provided in a partial class, allows value of Outline to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before setting.
partial void SetOutline(string oldValue, ref string newValue); /// </summary>
/// <summary> partial void SetOutline(string oldValue, ref string newValue);
/// When provided in a partial class, allows value of Outline to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before returning.
partial void GetOutline(ref string result); /// </summary>
partial void GetOutline(ref string result);
/// <summary>
/// Max length = 1024 /// <summary>
/// </summary> /// Max length = 1024
[MaxLength(1024)] /// </summary>
[StringLength(1024)] [MaxLength(1024)]
public string Outline [StringLength(1024)]
{ public string Outline
get {
{ get
string value = _Outline; {
GetOutline(ref value); string value = _Outline;
return (_Outline = value); GetOutline(ref value);
} return (_Outline = value);
set }
{ set
string oldValue = _Outline;
SetOutline(oldValue, ref value);
if (oldValue != value)
{ {
_Outline = value; string oldValue = _Outline;
SetOutline(oldValue, ref value);
if (oldValue != value)
{
_Outline = value;
}
} }
} }
}
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,163 +9,165 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Series: global::Jellyfin.Data.Entities.LibraryItem [Table("Series")]
{ public partial class Series : LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Series(): base() /// </summary>
{ protected Series() : base()
SeriesMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.SeriesMetadata>(); {
Seasons = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Season>(); SeriesMetadata = new HashSet<SeriesMetadata>();
Seasons = new HashSet<Season>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Series CreateSeriesUnsafe() /// </summary>
{ public static Series CreateSeriesUnsafe()
return new Series(); {
} return new Series();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
public Series(Guid urlid, DateTime dateadded) /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
{ public Series(Guid urlid, DateTime dateadded)
this.UrlId = urlid; {
this.UrlId = urlid;
this.SeriesMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.SeriesMetadata>();
this.Seasons = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Season>(); this.SeriesMetadata = new HashSet<SeriesMetadata>();
this.Seasons = new HashSet<Season>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
public static Series Create(Guid urlid, DateTime dateadded) /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
{ public static Series Create(Guid urlid, DateTime dateadded)
return new Series(urlid, dateadded); {
} return new Series(urlid, dateadded);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for AirsDayOfWeek /// <summary>
/// </summary> /// Backing field for AirsDayOfWeek
protected global::Jellyfin.Data.Enums.Weekday? _AirsDayOfWeek; /// </summary>
/// <summary> protected Enums.Weekday? _AirsDayOfWeek;
/// When provided in a partial class, allows value of AirsDayOfWeek to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of AirsDayOfWeek to be changed before setting.
partial void SetAirsDayOfWeek(global::Jellyfin.Data.Enums.Weekday? oldValue, ref global::Jellyfin.Data.Enums.Weekday? newValue); /// </summary>
/// <summary> partial void SetAirsDayOfWeek(Enums.Weekday? oldValue, ref Enums.Weekday? newValue);
/// When provided in a partial class, allows value of AirsDayOfWeek to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of AirsDayOfWeek to be changed before returning.
partial void GetAirsDayOfWeek(ref global::Jellyfin.Data.Enums.Weekday? result); /// </summary>
partial void GetAirsDayOfWeek(ref Enums.Weekday? result);
public global::Jellyfin.Data.Enums.Weekday? AirsDayOfWeek
{ public Enums.Weekday? AirsDayOfWeek
get {
{ get
global::Jellyfin.Data.Enums.Weekday? value = _AirsDayOfWeek;
GetAirsDayOfWeek(ref value);
return (_AirsDayOfWeek = value);
}
set
{
global::Jellyfin.Data.Enums.Weekday? oldValue = _AirsDayOfWeek;
SetAirsDayOfWeek(oldValue, ref value);
if (oldValue != value)
{ {
_AirsDayOfWeek = value; Enums.Weekday? value = _AirsDayOfWeek;
GetAirsDayOfWeek(ref value);
return (_AirsDayOfWeek = value);
} }
} set
}
/// <summary>
/// Backing field for AirsTime
/// </summary>
protected DateTimeOffset? _AirsTime;
/// <summary>
/// When provided in a partial class, allows value of AirsTime to be changed before setting.
/// </summary>
partial void SetAirsTime(DateTimeOffset? oldValue, ref DateTimeOffset? newValue);
/// <summary>
/// When provided in a partial class, allows value of AirsTime to be changed before returning.
/// </summary>
partial void GetAirsTime(ref DateTimeOffset? result);
/// <summary>
/// The time the show airs, ignore the date portion
/// </summary>
public DateTimeOffset? AirsTime
{
get
{
DateTimeOffset? value = _AirsTime;
GetAirsTime(ref value);
return (_AirsTime = value);
}
set
{
DateTimeOffset? oldValue = _AirsTime;
SetAirsTime(oldValue, ref value);
if (oldValue != value)
{ {
_AirsTime = value; Enums.Weekday? oldValue = _AirsDayOfWeek;
SetAirsDayOfWeek(oldValue, ref value);
if (oldValue != value)
{
_AirsDayOfWeek = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for AirsTime
/// Backing field for FirstAired /// </summary>
/// </summary> protected DateTimeOffset? _AirsTime;
protected DateTimeOffset? _FirstAired; /// <summary>
/// <summary> /// When provided in a partial class, allows value of AirsTime to be changed before setting.
/// When provided in a partial class, allows value of FirstAired to be changed before setting. /// </summary>
/// </summary> partial void SetAirsTime(DateTimeOffset? oldValue, ref DateTimeOffset? newValue);
partial void SetFirstAired(DateTimeOffset? oldValue, ref DateTimeOffset? newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of AirsTime to be changed before returning.
/// When provided in a partial class, allows value of FirstAired to be changed before returning. /// </summary>
/// </summary> partial void GetAirsTime(ref DateTimeOffset? result);
partial void GetFirstAired(ref DateTimeOffset? result);
/// <summary>
public DateTimeOffset? FirstAired /// The time the show airs, ignore the date portion
{ /// </summary>
get public DateTimeOffset? AirsTime
{ {
DateTimeOffset? value = _FirstAired; get
GetFirstAired(ref value);
return (_FirstAired = value);
}
set
{
DateTimeOffset? oldValue = _FirstAired;
SetFirstAired(oldValue, ref value);
if (oldValue != value)
{ {
_FirstAired = value; DateTimeOffset? value = _AirsTime;
GetAirsTime(ref value);
return (_AirsTime = value);
} }
} set
} {
DateTimeOffset? oldValue = _AirsTime;
/************************************************************************* SetAirsTime(oldValue, ref value);
* Navigation properties if (oldValue != value)
*************************************************************************/ {
_AirsTime = value;
}
}
}
/// <summary>
/// Backing field for FirstAired
/// </summary>
protected DateTimeOffset? _FirstAired;
/// <summary>
/// When provided in a partial class, allows value of FirstAired to be changed before setting.
/// </summary>
partial void SetFirstAired(DateTimeOffset? oldValue, ref DateTimeOffset? newValue);
/// <summary>
/// When provided in a partial class, allows value of FirstAired to be changed before returning.
/// </summary>
partial void GetFirstAired(ref DateTimeOffset? result);
public DateTimeOffset? FirstAired
{
get
{
DateTimeOffset? value = _FirstAired;
GetFirstAired(ref value);
return (_FirstAired = value);
}
set
{
DateTimeOffset? oldValue = _FirstAired;
SetFirstAired(oldValue, ref value);
if (oldValue != value)
{
_FirstAired = value;
}
}
}
public virtual ICollection<global::Jellyfin.Data.Entities.SeriesMetadata> SeriesMetadata { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("SeriesMetadata_SeriesMetadata_Id")]
public virtual ICollection<SeriesMetadata> SeriesMetadata { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.Season> Seasons { get; protected set; } [ForeignKey("Season_Seasons_Id")]
public virtual ICollection<Season> Seasons { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,219 +9,220 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class SeriesMetadata: global::Jellyfin.Data.Entities.Metadata [Table("SeriesMetadata")]
{ public partial class SeriesMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected SeriesMetadata(): base() /// </summary>
{ protected SeriesMetadata() : base()
Networks = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>(); {
Networks = new HashSet<Company>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static SeriesMetadata CreateSeriesMetadataUnsafe() /// </summary>
{ public static SeriesMetadata CreateSeriesMetadataUnsafe()
return new SeriesMetadata(); {
} return new SeriesMetadata();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_series0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public SeriesMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Series _series0) /// <param name="_series0"></param>
{ public SeriesMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Series _series0)
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); {
this.Title = title; if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language;
if (_series0 == null) throw new ArgumentNullException(nameof(_series0));
_series0.SeriesMetadata.Add(this); if (_series0 == null) throw new ArgumentNullException(nameof(_series0));
_series0.SeriesMetadata.Add(this);
this.Networks = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>();
this.Networks = new HashSet<Company>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="title">The title or name of the object</param> /// </summary>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="title">The title or name of the object</param>
/// <param name="_series0"></param> /// <param name="language">ISO-639-3 3-character language codes</param>
public static SeriesMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Series _series0) /// <param name="_series0"></param>
{ public static SeriesMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Series _series0)
return new SeriesMetadata(title, language, dateadded, datemodified, _series0); {
} return new SeriesMetadata(title, language, dateadded, datemodified, _series0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for Outline /// <summary>
/// </summary> /// Backing field for Outline
protected string _Outline; /// </summary>
/// <summary> protected string _Outline;
/// When provided in a partial class, allows value of Outline to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before setting.
partial void SetOutline(string oldValue, ref string newValue); /// </summary>
/// <summary> partial void SetOutline(string oldValue, ref string newValue);
/// When provided in a partial class, allows value of Outline to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of Outline to be changed before returning.
partial void GetOutline(ref string result); /// </summary>
partial void GetOutline(ref string result);
/// <summary>
/// Max length = 1024 /// <summary>
/// </summary> /// Max length = 1024
[MaxLength(1024)] /// </summary>
[StringLength(1024)] [MaxLength(1024)]
public string Outline [StringLength(1024)]
{ public string Outline
get {
{ get
string value = _Outline;
GetOutline(ref value);
return (_Outline = value);
}
set
{
string oldValue = _Outline;
SetOutline(oldValue, ref value);
if (oldValue != value)
{ {
_Outline = value; string value = _Outline;
GetOutline(ref value);
return (_Outline = value);
} }
} set
}
/// <summary>
/// Backing field for Plot
/// </summary>
protected string _Plot;
/// <summary>
/// When provided in a partial class, allows value of Plot to be changed before setting.
/// </summary>
partial void SetPlot(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Plot to be changed before returning.
/// </summary>
partial void GetPlot(ref string result);
/// <summary>
/// Max length = 65535
/// </summary>
[MaxLength(65535)]
[StringLength(65535)]
public string Plot
{
get
{
string value = _Plot;
GetPlot(ref value);
return (_Plot = value);
}
set
{
string oldValue = _Plot;
SetPlot(oldValue, ref value);
if (oldValue != value)
{ {
_Plot = value; string oldValue = _Outline;
SetOutline(oldValue, ref value);
if (oldValue != value)
{
_Outline = value;
}
} }
} }
}
/// <summary>
/// <summary> /// Backing field for Plot
/// Backing field for Tagline /// </summary>
/// </summary> protected string _Plot;
protected string _Tagline; /// <summary>
/// <summary> /// When provided in a partial class, allows value of Plot to be changed before setting.
/// When provided in a partial class, allows value of Tagline to be changed before setting. /// </summary>
/// </summary> partial void SetPlot(string oldValue, ref string newValue);
partial void SetTagline(string oldValue, ref string newValue); /// <summary>
/// <summary> /// When provided in a partial class, allows value of Plot to be changed before returning.
/// When provided in a partial class, allows value of Tagline to be changed before returning. /// </summary>
/// </summary> partial void GetPlot(ref string result);
partial void GetTagline(ref string result);
/// <summary>
/// <summary> /// Max length = 65535
/// Max length = 1024 /// </summary>
/// </summary> [MaxLength(65535)]
[MaxLength(1024)] [StringLength(65535)]
[StringLength(1024)] public string Plot
public string Tagline {
{ get
get
{
string value = _Tagline;
GetTagline(ref value);
return (_Tagline = value);
}
set
{
string oldValue = _Tagline;
SetTagline(oldValue, ref value);
if (oldValue != value)
{ {
_Tagline = value; string value = _Plot;
GetPlot(ref value);
return (_Plot = value);
} }
} set
}
/// <summary>
/// Backing field for Country
/// </summary>
protected string _Country;
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before setting.
/// </summary>
partial void SetCountry(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before returning.
/// </summary>
partial void GetCountry(ref string result);
/// <summary>
/// Max length = 2
/// </summary>
[MaxLength(2)]
[StringLength(2)]
public string Country
{
get
{
string value = _Country;
GetCountry(ref value);
return (_Country = value);
}
set
{
string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{ {
_Country = value; string oldValue = _Plot;
SetPlot(oldValue, ref value);
if (oldValue != value)
{
_Plot = value;
}
} }
} }
}
/// <summary>
/************************************************************************* /// Backing field for Tagline
* Navigation properties /// </summary>
*************************************************************************/ protected string _Tagline;
/// <summary>
/// When provided in a partial class, allows value of Tagline to be changed before setting.
/// </summary>
partial void SetTagline(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Tagline to be changed before returning.
/// </summary>
partial void GetTagline(ref string result);
/// <summary>
/// Max length = 1024
/// </summary>
[MaxLength(1024)]
[StringLength(1024)]
public string Tagline
{
get
{
string value = _Tagline;
GetTagline(ref value);
return (_Tagline = value);
}
set
{
string oldValue = _Tagline;
SetTagline(oldValue, ref value);
if (oldValue != value)
{
_Tagline = value;
}
}
}
/// <summary>
/// Backing field for Country
/// </summary>
protected string _Country;
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before setting.
/// </summary>
partial void SetCountry(string oldValue, ref string newValue);
/// <summary>
/// When provided in a partial class, allows value of Country to be changed before returning.
/// </summary>
partial void GetCountry(ref string result);
/// <summary>
/// Max length = 2
/// </summary>
[MaxLength(2)]
[StringLength(2)]
public string Country
{
get
{
string value = _Country;
GetCountry(ref value);
return (_Country = value);
}
set
{
string oldValue = _Country;
SetCountry(oldValue, ref value);
if (oldValue != value)
{
_Country = value;
}
}
}
public virtual ICollection<global::Jellyfin.Data.Entities.Company> Networks { get; protected set; } /*************************************************************************
* Navigation properties
*************************************************************************/
[ForeignKey("Company_Networks_Id")]
public virtual ICollection<Company> Networks { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,107 +9,110 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class Track: global::Jellyfin.Data.Entities.LibraryItem [Table("Track")]
{ public partial class Track : LibraryItem
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected Track(): base() /// </summary>
{ protected Track() : base()
// 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. // 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.
Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>();
TrackMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.TrackMetadata>(); Releases = new HashSet<Release>();
TrackMetadata = new HashSet<TrackMetadata>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static Track CreateTrackUnsafe() /// </summary>
{ public static Track CreateTrackUnsafe()
return new Track(); {
} return new Track();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
/// <param name="_musicalbum0"></param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public Track(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.MusicAlbum _musicalbum0) /// <param name="_musicalbum0"></param>
{ public Track(Guid urlid, DateTime dateadded, MusicAlbum _musicalbum0)
// 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. // 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.
this.UrlId = urlid;
this.UrlId = urlid;
if (_musicalbum0 == null) throw new ArgumentNullException(nameof(_musicalbum0));
_musicalbum0.Tracks.Add(this); if (_musicalbum0 == null) throw new ArgumentNullException(nameof(_musicalbum0));
_musicalbum0.Tracks.Add(this);
this.Releases = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Release>();
this.TrackMetadata = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.TrackMetadata>(); this.Releases = new HashSet<Release>();
this.TrackMetadata = new HashSet<TrackMetadata>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// </summary>
/// <param name="_musicalbum0"></param> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
public static Track Create(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.MusicAlbum _musicalbum0) /// <param name="_musicalbum0"></param>
{ public static Track Create(Guid urlid, DateTime dateadded, MusicAlbum _musicalbum0)
return new Track(urlid, dateadded, _musicalbum0); {
} return new Track(urlid, dateadded, _musicalbum0);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Backing field for TrackNumber /// <summary>
/// </summary> /// Backing field for TrackNumber
protected int? _TrackNumber; /// </summary>
/// <summary> protected int? _TrackNumber;
/// When provided in a partial class, allows value of TrackNumber to be changed before setting. /// <summary>
/// </summary> /// When provided in a partial class, allows value of TrackNumber to be changed before setting.
partial void SetTrackNumber(int? oldValue, ref int? newValue); /// </summary>
/// <summary> partial void SetTrackNumber(int? oldValue, ref int? newValue);
/// When provided in a partial class, allows value of TrackNumber to be changed before returning. /// <summary>
/// </summary> /// When provided in a partial class, allows value of TrackNumber to be changed before returning.
partial void GetTrackNumber(ref int? result); /// </summary>
partial void GetTrackNumber(ref int? result);
public int? TrackNumber
{ public int? TrackNumber
get {
{ get
int? value = _TrackNumber; {
GetTrackNumber(ref value); int? value = _TrackNumber;
return (_TrackNumber = value); GetTrackNumber(ref value);
} return (_TrackNumber = value);
set }
{ set
int? oldValue = _TrackNumber;
SetTrackNumber(oldValue, ref value);
if (oldValue != value)
{ {
_TrackNumber = value; int? oldValue = _TrackNumber;
SetTrackNumber(oldValue, ref value);
if (oldValue != value)
{
_TrackNumber = value;
}
} }
} }
}
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.Release> Releases { get; protected set; } [ForeignKey("Release_Releases_Id")]
public virtual ICollection<Release> Releases { get; protected set; }
public virtual ICollection<global::Jellyfin.Data.Entities.TrackMetadata> TrackMetadata { get; protected set; } [ForeignKey("TrackMetadata_TrackMetadata_Id")]
public virtual ICollection<TrackMetadata> TrackMetadata { get; protected set; }
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,66 +9,67 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class TrackMetadata: global::Jellyfin.Data.Entities.Metadata [Table("TrackMetadata")]
{ public partial class TrackMetadata : Metadata
partial void Init(); {
partial void Init();
/// <summary> /// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// Default constructor. Protected due to required properties, but present because EF needs it.
/// </summary> /// </summary>
protected TrackMetadata(): base() protected TrackMetadata() : base()
{ {
Init(); Init();
} }
/// <summary> /// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
/// </summary> /// </summary>
public static TrackMetadata CreateTrackMetadataUnsafe() public static TrackMetadata CreateTrackMetadataUnsafe()
{ {
return new TrackMetadata(); return new TrackMetadata();
} }
/// <summary> /// <summary>
/// Public constructor with required data /// Public constructor with required data
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_track0"></param> /// <param name="_track0"></param>
public TrackMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Track _track0) public TrackMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Track _track0)
{ {
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title)); if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
this.Title = title; this.Title = title;
if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language)); if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
this.Language = language; this.Language = language;
if (_track0 == null) throw new ArgumentNullException(nameof(_track0)); if (_track0 == null) throw new ArgumentNullException(nameof(_track0));
_track0.TrackMetadata.Add(this); _track0.TrackMetadata.Add(this);
Init(); Init();
} }
/// <summary> /// <summary>
/// Static create function (for use in LINQ queries, etc.) /// Static create function (for use in LINQ queries, etc.)
/// </summary> /// </summary>
/// <param name="title">The title or name of the object</param> /// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="language">ISO-639-3 3-character language codes</param>
/// <param name="_track0"></param> /// <param name="_track0"></param>
public static TrackMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Track _track0) public static TrackMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Track _track0)
{ {
return new TrackMetadata(title, language, dateadded, datemodified, _track0); return new TrackMetadata(title, language, dateadded, datemodified, _track0);
} }
/************************************************************************* /*************************************************************************
* Properties * Properties
*************************************************************************/ *************************************************************************/
/************************************************************************* /*************************************************************************
* Navigation properties * Navigation properties
*************************************************************************/ *************************************************************************/
} }
} }

@ -1,15 +1,3 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -21,222 +9,232 @@ using System.Runtime.CompilerServices;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities
{ {
public partial class User [Table("User")]
{ public partial class User
partial void Init(); {
partial void Init();
/// <summary>
/// Default constructor. Protected due to required properties, but present because EF needs it. /// <summary>
/// </summary> /// Default constructor. Protected due to required properties, but present because EF needs it.
protected User() /// </summary>
{ protected User()
Groups = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Group>(); {
Permissions = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Permission>(); Groups = new HashSet<Group>();
ProviderMappings = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.ProviderMapping>(); Permissions = new HashSet<Permission>();
Preferences = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Preference>(); ProviderMappings = new HashSet<ProviderMapping>();
Preferences = new HashSet<Preference>();
Init();
} Init();
}
/// <summary>
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving. /// <summary>
/// </summary> /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
public static User CreateUserUnsafe() /// </summary>
{ public static User CreateUserUnsafe()
return new User(); {
} return new User();
}
/// <summary>
/// Public constructor with required data /// <summary>
/// </summary> /// Public constructor with required data
/// <param name="username"></param> /// </summary>
/// <param name="mustupdatepassword"></param> /// <param name="username"></param>
/// <param name="audiolanguagepreference"></param> /// <param name="mustupdatepassword"></param>
/// <param name="authenticationproviderid"></param> /// <param name="audiolanguagepreference"></param>
/// <param name="invalidloginattemptcount"></param> /// <param name="authenticationproviderid"></param>
/// <param name="subtitlemode"></param> /// <param name="invalidloginattemptcount"></param>
/// <param name="playdefaultaudiotrack"></param> /// <param name="subtitlemode"></param>
public User(string username, bool mustupdatepassword, string audiolanguagepreference, string authenticationproviderid, int invalidloginattemptcount, string subtitlemode, bool playdefaultaudiotrack) /// <param name="playdefaultaudiotrack"></param>
{ public User(string username, bool mustupdatepassword, string audiolanguagepreference, string authenticationproviderid, int invalidloginattemptcount, string subtitlemode, bool playdefaultaudiotrack)
if (string.IsNullOrEmpty(username)) throw new ArgumentNullException(nameof(username)); {
this.Username = username; if (string.IsNullOrEmpty(username)) throw new ArgumentNullException(nameof(username));
this.Username = username;
this.MustUpdatePassword = mustupdatepassword;
this.MustUpdatePassword = mustupdatepassword;
if (string.IsNullOrEmpty(audiolanguagepreference)) throw new ArgumentNullException(nameof(audiolanguagepreference));
this.AudioLanguagePreference = audiolanguagepreference; if (string.IsNullOrEmpty(audiolanguagepreference)) throw new ArgumentNullException(nameof(audiolanguagepreference));
this.AudioLanguagePreference = audiolanguagepreference;
if (string.IsNullOrEmpty(authenticationproviderid)) throw new ArgumentNullException(nameof(authenticationproviderid));
this.AuthenticationProviderId = authenticationproviderid; if (string.IsNullOrEmpty(authenticationproviderid)) throw new ArgumentNullException(nameof(authenticationproviderid));
this.AuthenticationProviderId = authenticationproviderid;
this.InvalidLoginAttemptCount = invalidloginattemptcount;
this.InvalidLoginAttemptCount = invalidloginattemptcount;
if (string.IsNullOrEmpty(subtitlemode)) throw new ArgumentNullException(nameof(subtitlemode));
this.SubtitleMode = subtitlemode; if (string.IsNullOrEmpty(subtitlemode)) throw new ArgumentNullException(nameof(subtitlemode));
this.SubtitleMode = subtitlemode;
this.PlayDefaultAudioTrack = playdefaultaudiotrack;
this.PlayDefaultAudioTrack = playdefaultaudiotrack;
this.Groups = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Group>();
this.Permissions = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Permission>(); this.Groups = new HashSet<Group>();
this.ProviderMappings = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.ProviderMapping>(); this.Permissions = new HashSet<Permission>();
this.Preferences = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Preference>(); this.ProviderMappings = new HashSet<ProviderMapping>();
this.Preferences = new HashSet<Preference>();
Init();
} Init();
}
/// <summary>
/// Static create function (for use in LINQ queries, etc.) /// <summary>
/// </summary> /// Static create function (for use in LINQ queries, etc.)
/// <param name="username"></param> /// </summary>
/// <param name="mustupdatepassword"></param> /// <param name="username"></param>
/// <param name="audiolanguagepreference"></param> /// <param name="mustupdatepassword"></param>
/// <param name="authenticationproviderid"></param> /// <param name="audiolanguagepreference"></param>
/// <param name="invalidloginattemptcount"></param> /// <param name="authenticationproviderid"></param>
/// <param name="subtitlemode"></param> /// <param name="invalidloginattemptcount"></param>
/// <param name="playdefaultaudiotrack"></param> /// <param name="subtitlemode"></param>
public static User Create(string username, bool mustupdatepassword, string audiolanguagepreference, string authenticationproviderid, int invalidloginattemptcount, string subtitlemode, bool playdefaultaudiotrack) /// <param name="playdefaultaudiotrack"></param>
{ public static User Create(string username, bool mustupdatepassword, string audiolanguagepreference, string authenticationproviderid, int invalidloginattemptcount, string subtitlemode, bool playdefaultaudiotrack)
return new User(username, mustupdatepassword, audiolanguagepreference, authenticationproviderid, invalidloginattemptcount, subtitlemode, playdefaultaudiotrack); {
} return new User(username, mustupdatepassword, audiolanguagepreference, authenticationproviderid, invalidloginattemptcount, subtitlemode, playdefaultaudiotrack);
}
/*************************************************************************
* Properties /*************************************************************************
*************************************************************************/ * Properties
*************************************************************************/
/// <summary>
/// Identity, Indexed, Required /// <summary>
/// </summary> /// Identity, Indexed, Required
[Key] /// </summary>
[Required] [Key]
public Guid Id { get; protected set; } [Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
/// <summary> public int Id { get; protected set; }
/// Required
/// </summary> /// <summary>
[ConcurrencyCheck] /// Required, Max length = 255
[Required] /// </summary>
public byte[] LastLoginTimestamp { get; set; } [Required]
[MaxLength(255)]
/// <summary> [StringLength(255)]
/// Required, Max length = 255 public string Username { get; set; }
/// </summary>
[Required] /// <summary>
[MaxLength(255)] /// Max length = 65535
[StringLength(255)] /// </summary>
public string Username { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string Password { get; set; }
/// Max length = 65535
/// </summary> /// <summary>
[MaxLength(65535)] /// Required
[StringLength(65535)] /// </summary>
public string Password { get; set; } [Required]
public bool MustUpdatePassword { get; set; }
/// <summary>
/// Required /// <summary>
/// </summary> /// Required, Max length = 255
[Required] /// </summary>
public bool MustUpdatePassword { get; set; } [Required]
[MaxLength(255)]
/// <summary> [StringLength(255)]
/// Required, Max length = 255 public string AudioLanguagePreference { get; set; }
/// </summary>
[Required] /// <summary>
[MaxLength(255)] /// Required, Max length = 255
[StringLength(255)] /// </summary>
public string AudioLanguagePreference { get; set; } [Required]
[MaxLength(255)]
/// <summary> [StringLength(255)]
/// Required, Max length = 255 public string AuthenticationProviderId { get; set; }
/// </summary>
[Required] /// <summary>
[MaxLength(255)] /// Max length = 65535
[StringLength(255)] /// </summary>
public string AuthenticationProviderId { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string GroupedFolders { get; set; }
/// Max length = 65535
/// </summary> /// <summary>
[MaxLength(65535)] /// Required
[StringLength(65535)] /// </summary>
public string GroupedFolders { get; set; } [Required]
public int InvalidLoginAttemptCount { get; set; }
/// <summary>
/// Required /// <summary>
/// </summary> /// Max length = 65535
[Required] /// </summary>
public int InvalidLoginAttemptCount { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string LatestItemExcludes { get; set; }
/// Max length = 65535
/// </summary> public int? LoginAttemptsBeforeLockout { get; set; }
[MaxLength(65535)]
[StringLength(65535)] /// <summary>
public string LatestItemExcludes { get; set; } /// Max length = 65535
/// </summary>
public int? LoginAttemptsBeforeLockout { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string MyMediaExcludes { get; set; }
/// Max length = 65535
/// </summary> /// <summary>
[MaxLength(65535)] /// Max length = 65535
[StringLength(65535)] /// </summary>
public string MyMediaExcludes { get; set; } [MaxLength(65535)]
[StringLength(65535)]
/// <summary> public string OrderedViews { get; set; }
/// Max length = 65535
/// </summary> /// <summary>
[MaxLength(65535)] /// Required, Max length = 255
[StringLength(65535)] /// </summary>
public string OrderedViews { get; set; } [Required]
[MaxLength(255)]
/// <summary> [StringLength(255)]
/// Required, Max length = 255 public string SubtitleMode { get; set; }
/// </summary>
[Required] /// <summary>
[MaxLength(255)] /// Required
[StringLength(255)] /// </summary>
public string SubtitleMode { get; set; } [Required]
public bool PlayDefaultAudioTrack { get; set; }
/// <summary>
/// Required /// <summary>
/// </summary> /// Max length = 255
[Required] /// </summary>
public bool PlayDefaultAudioTrack { get; set; } [MaxLength(255)]
[StringLength(255)]
/// <summary> public string SubtitleLanguagePrefernce { get; set; }
/// Max length = 255
/// </summary> public bool? DisplayMissingEpisodes { get; set; }
[MaxLength(255)]
[StringLength(255)] public bool? DisplayCollectionsView { get; set; }
public string SubtitleLanguagePrefernce { get; set; }
public bool? HidePlayedInLatest { get; set; }
public bool? DisplayMissingEpisodes { get; set; }
public bool? RememberAudioSelections { get; set; }
public bool? DisplayCollectionsView { get; set; }
public bool? RememberSubtitleSelections { get; set; }
public bool? HidePlayedInLatest { get; set; }
public bool? EnableNextEpisodeAutoPlay { get; set; }
public bool? RememberAudioSelections { get; set; }
public bool? EnableUserPreferenceAccess { get; set; }
public bool? RememberSubtitleSelections { get; set; }
/// <summary>
public bool? EnableNextEpisodeAutoPlay { get; set; } /// Required, ConcurrenyToken
/// </summary>
public bool? EnableUserPreferenceAccess { get; set; } [ConcurrencyCheck]
[Required]
/************************************************************************* public uint RowVersion { get; set; }
* Navigation properties
*************************************************************************/ public void OnSavingChanges()
{
public virtual ICollection<global::Jellyfin.Data.Entities.Group> Groups { get; protected set; } RowVersion++;
}
public virtual ICollection<global::Jellyfin.Data.Entities.Permission> Permissions { get; protected set; }
/*************************************************************************
public virtual ICollection<global::Jellyfin.Data.Entities.ProviderMapping> ProviderMappings { get; protected set; } * Navigation properties
*************************************************************************/
public virtual ICollection<global::Jellyfin.Data.Entities.Preference> Preferences { get; protected set; } [ForeignKey("Group_Groups_Id")]
public virtual ICollection<Group> Groups { get; protected set; }
}
[ForeignKey("Permission_Permissions_Id")]
public virtual ICollection<Permission> Permissions { get; protected set; }
[ForeignKey("ProviderMapping_ProviderMappings_Id")]
public virtual ICollection<ProviderMapping> ProviderMappings { get; protected set; }
[ForeignKey("Preference_Preferences_Id")]
public virtual ICollection<Preference> Preferences { get; protected set; }
}
} }

@ -1,25 +1,13 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
namespace Jellyfin.Data.Enums namespace Jellyfin.Data.Enums
{ {
public enum ArtKind : Int32 public enum ArtKind : Int32
{ {
Other, Other,
Poster, Poster,
Banner, Banner,
Thumbnail, Thumbnail,
Logo Logo
} }
} }

@ -1,25 +1,13 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
namespace Jellyfin.Data.Enums namespace Jellyfin.Data.Enums
{ {
public enum MediaFileKind : Int32 public enum MediaFileKind : Int32
{ {
Main, Main,
Sidecar, Sidecar,
AdditionalPart, AdditionalPart,
AlternativeFormat, AlternativeFormat,
AdditionalStream AdditionalStream
} }
} }

@ -0,0 +1,28 @@
using System;
namespace Jellyfin.Data.Enums
{
public enum PermissionKind : Int32
{
IsAdministrator,
IsHidden,
IsDisabled,
BlockUnrateditems,
EnbleSharedDeviceControl,
EnableRemoteAccess,
EnableLiveTvManagement,
EnableLiveTvAccess,
EnableMediaPlayback,
EnableAudioPlaybackTranscoding,
EnableVideoPlaybackTranscoding,
EnableContentDeletion,
EnableContentDownloading,
EnableSyncTranscoding,
EnableMediaConversion,
EnableAllDevices,
EnableAllChannels,
EnableAllFolders,
EnablePublicSharing,
AccessSchedules
}
}

@ -1,32 +1,20 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
namespace Jellyfin.Data.Enums namespace Jellyfin.Data.Enums
{ {
public enum PersonRoleType : Int32 public enum PersonRoleType : Int32
{ {
Other, Other,
Director, Director,
Artist, Artist,
OriginalArtist, OriginalArtist,
Actor, Actor,
VoiceActor, VoiceActor,
Producer, Producer,
Remixer, Remixer,
Conductor, Conductor,
Composer, Composer,
Author, Author,
Editor Editor
} }
} }

@ -0,0 +1,15 @@
using System;
namespace Jellyfin.Data.Enums
{
public enum PreferenceKind : Int32
{
MaxParentalRating,
BlockedTags,
RemoteClientBitrateLimit,
EnabledDevices,
EnabledChannels,
EnabledFolders,
EnableContentDeletionFromFolders
}
}

@ -1,27 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
// Produced by Entity Framework Visual Editor
// https://github.com/msawczyn/EFDesigner
// </auto-generated>
//------------------------------------------------------------------------------
using System; using System;
namespace Jellyfin.Data.Enums namespace Jellyfin.Data.Enums
{ {
public enum Weekday : Int32 public enum Weekday : Int32
{ {
Sunday, Sunday,
Monday, Monday,
Tuesday, Tuesday,
Wednesday, Wednesday,
Thursday, Thursday,
Friday, Friday,
Saturday Saturday
} }
} }

Loading…
Cancel
Save