SeriesMetadata.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 SeriesMetadata: 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 SeriesMetadata(): base()
  29. {
  30. Networks = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>();
  31. Init();
  32. }
  33. /// <summary>
  34. /// Replaces default constructor, since it's protected. Caller assumes responsibility for setting all required values before saving.
  35. /// </summary>
  36. public static SeriesMetadata CreateSeriesMetadataUnsafe()
  37. {
  38. return new SeriesMetadata();
  39. }
  40. /// <summary>
  41. /// Public constructor with required data
  42. /// </summary>
  43. /// <param name="title">The title or name of the object</param>
  44. /// <param name="language">ISO-639-3 3-character language codes</param>
  45. /// <param name="_series0"></param>
  46. public SeriesMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Series _series0)
  47. {
  48. if (string.IsNullOrEmpty(title)) throw new ArgumentNullException(nameof(title));
  49. this.Title = title;
  50. if (string.IsNullOrEmpty(language)) throw new ArgumentNullException(nameof(language));
  51. this.Language = language;
  52. if (_series0 == null) throw new ArgumentNullException(nameof(_series0));
  53. _series0.SeriesMetadata.Add(this);
  54. this.Networks = new System.Collections.Generic.HashSet<global::Jellyfin.Data.Entities.Company>();
  55. Init();
  56. }
  57. /// <summary>
  58. /// Static create function (for use in LINQ queries, etc.)
  59. /// </summary>
  60. /// <param name="title">The title or name of the object</param>
  61. /// <param name="language">ISO-639-3 3-character language codes</param>
  62. /// <param name="_series0"></param>
  63. public static SeriesMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Series _series0)
  64. {
  65. return new SeriesMetadata(title, language, dateadded, datemodified, _series0);
  66. }
  67. /*************************************************************************
  68. * Properties
  69. *************************************************************************/
  70. /// <summary>
  71. /// Backing field for Outline
  72. /// </summary>
  73. protected string _Outline;
  74. /// <summary>
  75. /// When provided in a partial class, allows value of Outline to be changed before setting.
  76. /// </summary>
  77. partial void SetOutline(string oldValue, ref string newValue);
  78. /// <summary>
  79. /// When provided in a partial class, allows value of Outline to be changed before returning.
  80. /// </summary>
  81. partial void GetOutline(ref string result);
  82. /// <summary>
  83. /// Max length = 1024
  84. /// </summary>
  85. [MaxLength(1024)]
  86. [StringLength(1024)]
  87. public string Outline
  88. {
  89. get
  90. {
  91. string value = _Outline;
  92. GetOutline(ref value);
  93. return (_Outline = value);
  94. }
  95. set
  96. {
  97. string oldValue = _Outline;
  98. SetOutline(oldValue, ref value);
  99. if (oldValue != value)
  100. {
  101. _Outline = value;
  102. }
  103. }
  104. }
  105. /// <summary>
  106. /// Backing field for Plot
  107. /// </summary>
  108. protected string _Plot;
  109. /// <summary>
  110. /// When provided in a partial class, allows value of Plot to be changed before setting.
  111. /// </summary>
  112. partial void SetPlot(string oldValue, ref string newValue);
  113. /// <summary>
  114. /// When provided in a partial class, allows value of Plot to be changed before returning.
  115. /// </summary>
  116. partial void GetPlot(ref string result);
  117. /// <summary>
  118. /// Max length = 65535
  119. /// </summary>
  120. [MaxLength(65535)]
  121. [StringLength(65535)]
  122. public string Plot
  123. {
  124. get
  125. {
  126. string value = _Plot;
  127. GetPlot(ref value);
  128. return (_Plot = value);
  129. }
  130. set
  131. {
  132. string oldValue = _Plot;
  133. SetPlot(oldValue, ref value);
  134. if (oldValue != value)
  135. {
  136. _Plot = value;
  137. }
  138. }
  139. }
  140. /// <summary>
  141. /// Backing field for Tagline
  142. /// </summary>
  143. protected string _Tagline;
  144. /// <summary>
  145. /// When provided in a partial class, allows value of Tagline to be changed before setting.
  146. /// </summary>
  147. partial void SetTagline(string oldValue, ref string newValue);
  148. /// <summary>
  149. /// When provided in a partial class, allows value of Tagline to be changed before returning.
  150. /// </summary>
  151. partial void GetTagline(ref string result);
  152. /// <summary>
  153. /// Max length = 1024
  154. /// </summary>
  155. [MaxLength(1024)]
  156. [StringLength(1024)]
  157. public string Tagline
  158. {
  159. get
  160. {
  161. string value = _Tagline;
  162. GetTagline(ref value);
  163. return (_Tagline = value);
  164. }
  165. set
  166. {
  167. string oldValue = _Tagline;
  168. SetTagline(oldValue, ref value);
  169. if (oldValue != value)
  170. {
  171. _Tagline = value;
  172. }
  173. }
  174. }
  175. /// <summary>
  176. /// Backing field for Country
  177. /// </summary>
  178. protected string _Country;
  179. /// <summary>
  180. /// When provided in a partial class, allows value of Country to be changed before setting.
  181. /// </summary>
  182. partial void SetCountry(string oldValue, ref string newValue);
  183. /// <summary>
  184. /// When provided in a partial class, allows value of Country to be changed before returning.
  185. /// </summary>
  186. partial void GetCountry(ref string result);
  187. /// <summary>
  188. /// Max length = 2
  189. /// </summary>
  190. [MaxLength(2)]
  191. [StringLength(2)]
  192. public string Country
  193. {
  194. get
  195. {
  196. string value = _Country;
  197. GetCountry(ref value);
  198. return (_Country = value);
  199. }
  200. set
  201. {
  202. string oldValue = _Country;
  203. SetCountry(oldValue, ref value);
  204. if (oldValue != value)
  205. {
  206. _Country = value;
  207. }
  208. }
  209. }
  210. /*************************************************************************
  211. * Navigation properties
  212. *************************************************************************/
  213. public virtual ICollection<global::Jellyfin.Data.Entities.Company> Networks { get; protected set; }
  214. }
  215. }