mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-12 01:03:26 +01:00
Clean up generated code
This commit is contained in:
@@ -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.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
@@ -21,182 +9,184 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Jellyfin.Data.Entities
|
||||
{
|
||||
public partial class MusicAlbumMetadata: global::Jellyfin.Data.Entities.Metadata
|
||||
{
|
||||
partial void Init();
|
||||
[Table("MusicAlbumMetadata")]
|
||||
public partial class MusicAlbumMetadata : Metadata
|
||||
{
|
||||
partial void Init();
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor. Protected due to required properties, but present because EF needs it.
|
||||
/// </summary>
|
||||
protected MusicAlbumMetadata(): base()
|
||||
{
|
||||
Labels = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>();
|
||||
/// <summary>
|
||||
/// Default constructor. Protected due to required properties, but present because EF needs it.
|
||||
/// </summary>
|
||||
protected MusicAlbumMetadata() : base()
|
||||
{
|
||||
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>
|
||||
public static MusicAlbumMetadata CreateMusicAlbumMetadataUnsafe()
|
||||
{
|
||||
return new MusicAlbumMetadata();
|
||||
}
|
||||
/// <summary>
|
||||
/// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
|
||||
/// </summary>
|
||||
public static MusicAlbumMetadata CreateMusicAlbumMetadataUnsafe()
|
||||
{
|
||||
return new MusicAlbumMetadata();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Public constructor with required data
|
||||
/// </summary>
|
||||
/// <param name="title">The title or name of the object</param>
|
||||
/// <param name="language">ISO-639-3 3-character language codes</param>
|
||||
/// <param name="_musicalbum0"></param>
|
||||
public MusicAlbumMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.MusicAlbum _musicalbum0)
|
||||
{
|
||||
if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
|
||||
this.Title = title;
|
||||
/// <summary>
|
||||
/// Public constructor with required data
|
||||
/// </summary>
|
||||
/// <param name="title">The title or name of the object</param>
|
||||
/// <param name="language">ISO-639-3 3-character language codes</param>
|
||||
/// <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(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>
|
||||
/// <param name="title">The title or name of the object</param>
|
||||
/// <param name="language">ISO-639-3 3-character language codes</param>
|
||||
/// <param name="_musicalbum0"></param>
|
||||
public static MusicAlbumMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.MusicAlbum _musicalbum0)
|
||||
{
|
||||
return new MusicAlbumMetadata(title, language, dateadded, datemodified, _musicalbum0);
|
||||
}
|
||||
/// <summary>
|
||||
/// Static create function (for use in LINQ queries, etc.)
|
||||
/// </summary>
|
||||
/// <param name="title">The title or name of the object</param>
|
||||
/// <param name="language">ISO-639-3 3-character language codes</param>
|
||||
/// <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);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* Properties
|
||||
*************************************************************************/
|
||||
/*************************************************************************
|
||||
* Properties
|
||||
*************************************************************************/
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Barcode
|
||||
/// </summary>
|
||||
protected string _Barcode;
|
||||
/// <summary>
|
||||
/// When provided in a partial class, allows value of Barcode to be changed before setting.
|
||||
/// </summary>
|
||||
partial void SetBarcode(string oldValue, ref string newValue);
|
||||
/// <summary>
|
||||
/// When provided in a partial class, allows value of Barcode to be changed before returning.
|
||||
/// </summary>
|
||||
partial void GetBarcode(ref string result);
|
||||
/// <summary>
|
||||
/// Backing field for Barcode
|
||||
/// </summary>
|
||||
protected string _Barcode;
|
||||
/// <summary>
|
||||
/// When provided in a partial class, allows value of Barcode to be changed before setting.
|
||||
/// </summary>
|
||||
partial void SetBarcode(string oldValue, ref string newValue);
|
||||
/// <summary>
|
||||
/// When provided in a partial class, allows value of Barcode to be changed before returning.
|
||||
/// </summary>
|
||||
partial void GetBarcode(ref string result);
|
||||
|
||||
/// <summary>
|
||||
/// Max length = 255
|
||||
/// </summary>
|
||||
[MaxLength(255)]
|
||||
[StringLength(255)]
|
||||
public string Barcode
|
||||
{
|
||||
get
|
||||
{
|
||||
string value = _Barcode;
|
||||
GetBarcode(ref value);
|
||||
return (_Barcode = value);
|
||||
}
|
||||
set
|
||||
{
|
||||
string oldValue = _Barcode;
|
||||
SetBarcode(oldValue, ref value);
|
||||
if (oldValue != value)
|
||||
/// <summary>
|
||||
/// Max length = 255
|
||||
/// </summary>
|
||||
[MaxLength(255)]
|
||||
[StringLength(255)]
|
||||
public string Barcode
|
||||
{
|
||||
get
|
||||
{
|
||||
_Barcode = value;
|
||||
string value = _Barcode;
|
||||
GetBarcode(ref value);
|
||||
return (_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
|
||||
{
|
||||
string oldValue = _LabelNumber;
|
||||
SetLabelNumber(oldValue, ref value);
|
||||
if (oldValue != value)
|
||||
set
|
||||
{
|
||||
_LabelNumber = value;
|
||||
string oldValue = _Barcode;
|
||||
SetBarcode(oldValue, ref value);
|
||||
if (oldValue != value)
|
||||
{
|
||||
_Barcode = 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>
|
||||
/// 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 = 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)
|
||||
/// <summary>
|
||||
/// Max length = 255
|
||||
/// </summary>
|
||||
[MaxLength(255)]
|
||||
[StringLength(255)]
|
||||
public string LabelNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
_Country = value;
|
||||
string value = _LabelNumber;
|
||||
GetLabelNumber(ref value);
|
||||
return (_LabelNumber = value);
|
||||
}
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
string oldValue = _LabelNumber;
|
||||
SetLabelNumber(oldValue, ref value);
|
||||
if (oldValue != value)
|
||||
{
|
||||
_LabelNumber = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* Navigation properties
|
||||
*************************************************************************/
|
||||
/// <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);
|
||||
|
||||
public virtual ICollection<global::Jellyfin.Data.Entities.Company> Labels { get; protected set; }
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/*************************************************************************
|
||||
* Navigation properties
|
||||
*************************************************************************/
|
||||
|
||||
[ForeignKey("Company_Labels_Id")]
|
||||
public virtual ICollection<Company> Labels { get; protected set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user