#pragma warning disable CA2227 using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Jellyfin.Data.Entities.Libraries { /// /// An entity holding the metadata for a music album. /// public class MusicAlbumMetadata : Metadata { /// /// Initializes a new instance of the class. /// /// The title or name of the album. /// ISO-639-3 3-character language codes. /// The music album. public MusicAlbumMetadata(string title, string language, MusicAlbum album) : base(title, language) { Labels = new HashSet(); album.MusicAlbumMetadata.Add(this); } /// /// Initializes a new instance of the class. /// /// /// Default constructor. Protected due to required properties, but present because EF needs it. /// protected MusicAlbumMetadata() { } /// /// Gets or sets the barcode. /// /// /// Max length = 255. /// [MaxLength(255)] [StringLength(255)] public string Barcode { get; set; } /// /// Gets or sets the label number. /// /// /// Max length = 255. /// [MaxLength(255)] [StringLength(255)] public string LabelNumber { get; set; } /// /// Gets or sets the country code. /// /// /// Max length = 2. /// [MaxLength(2)] [StringLength(2)] public string Country { get; set; } /// /// Gets or sets a collection containing the labels. /// public virtual ICollection Labels { get; protected set; } } }