using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace MvcMusicStore.Models { public class Album { [ScaffoldColumn(false)] public int AlbumId { get; set; } public int GenreId { get; set; } public int ArtistId { get; set; } [Required] [StringLength(160, MinimumLength = 2)] public string Title { get; set; } [Required] [Range(0.01, 100.00)] [DataType(DataType.Currency)] public decimal Price { get; set; } [DisplayName("Album Art URL")] [StringLength(1024)] public string AlbumArtUrl { get; set; } public virtual Genre Genre { get; set; } public virtual Artist Artist { get; set; } public virtual List OrderDetails { get; set; } } }