CustomItemMetadata.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 CustomItemMetadata: 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 CustomItemMetadata(): 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 CustomItemMetadata CreateCustomItemMetadataUnsafe()
  36. {
  37. return new CustomItemMetadata();
  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="_customitem0"></param>
  45. public CustomItemMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.CustomItem _customitem0)
  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 (_customitem0 == null) throw new ArgumentNullException(nameof(_customitem0));
  52. _customitem0.CustomItemMetadata.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="_customitem0"></param>
  61. public static CustomItemMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.CustomItem _customitem0)
  62. {
  63. return new CustomItemMetadata(title, language, dateadded, datemodified, _customitem0);
  64. }
  65. /*************************************************************************
  66. * Properties
  67. *************************************************************************/
  68. /*************************************************************************
  69. * Navigation properties
  70. *************************************************************************/
  71. }
  72. }