SeasonMetadata.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated from a template.
  4. //
  5. // Manual changes to this file may cause unexpected behavior in your application.
  6. // Manual changes to this file will be overwritten if the code is regenerated.
  7. //
  8. // Produced by Entity Framework Visual Editor
  9. // https://github.com/msawczyn/EFDesigner
  10. // </auto-generated>
  11. //------------------------------------------------------------------------------
  12. using System;
  13. using System.Collections.Generic;
  14. using System.Collections.ObjectModel;
  15. using System.ComponentModel;
  16. using System.ComponentModel.DataAnnotations;
  17. using System.ComponentModel.DataAnnotations.Schema;
  18. using System.Linq;
  19. using System.Runtime.CompilerServices;
  20. namespace Jellyfin.Data.Entities
  21. {
  22. public partial class SeasonMetadata: global::Jellyfin.Data.Entities.Metadata
  23. {
  24. partial void Init();
  25. /// <summary>
  26. /// Default constructor. Protected due to required properties, but present because EF needs it.
  27. /// </summary>
  28. protected SeasonMetadata(): base()
  29. {
  30. Init();
  31. }
  32. /// <summary>
  33. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
  34. /// </summary>
  35. public static SeasonMetadata CreateSeasonMetadataUnsafe()
  36. {
  37. return new SeasonMetadata();
  38. }
  39. /// <summary>
  40. /// Public constructor with required data
  41. /// </summary>
  42. /// <param name="title">The title or name of the object</param>
  43. /// <param name="language">ISO-639-3 3-character language codes</param>
  44. /// <param name="_season0"></param>
  45. public SeasonMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Season _season0)
  46. {
  47. if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
  48. this.Title = title;
  49. if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
  50. this.Language = language;
  51. if (_season0 == null) throw new ArgumentNullException(nameof(_season0));
  52. _season0.SeasonMetadata.Add(this);
  53. Init();
  54. }
  55. /// <summary>
  56. /// Static create function (for use in LINQ queries, etc.)
  57. /// </summary>
  58. /// <param name="title">The title or name of the object</param>
  59. /// <param name="language">ISO-639-3 3-character language codes</param>
  60. /// <param name="_season0"></param>
  61. public static SeasonMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Season _season0)
  62. {
  63. return new SeasonMetadata(title, language, dateadded, datemodified, _season0);
  64. }
  65. /*************************************************************************
  66. * Properties
  67. *************************************************************************/
  68. /// <summary>
  69. /// Backing field for Outline
  70. /// </summary>
  71. protected string _Outline;
  72. /// <summary>
  73. /// When provided in a partial class, allows value of Outline to be changed before setting.
  74. /// </summary>
  75. partial void SetOutline(string oldValue, ref string newValue);
  76. /// <summary>
  77. /// When provided in a partial class, allows value of Outline to be changed before returning.
  78. /// </summary>
  79. partial void GetOutline(ref string result);
  80. /// <summary>
  81. /// Max length = 1024
  82. /// </summary>
  83. [MaxLength(1024)]
  84. [StringLength(1024)]
  85. public string Outline
  86. {
  87. get
  88. {
  89. string value = _Outline;
  90. GetOutline(ref value);
  91. return (_Outline = value);
  92. }
  93. set
  94. {
  95. string oldValue = _Outline;
  96. SetOutline(oldValue, ref value);
  97. if (oldValue != value)
  98. {
  99. _Outline = value;
  100. }
  101. }
  102. }
  103. /*************************************************************************
  104. * Navigation properties
  105. *************************************************************************/
  106. }
  107. }