mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
25 lines
493 B
C#
25 lines
493 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace MusicStore.Models
|
|
{
|
|
public class Genre
|
|
{
|
|
public Genre()
|
|
{
|
|
Albums = new List<Album>();
|
|
}
|
|
|
|
public int GenreId { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual ICollection<Album> Albums { get; set; }
|
|
}
|
|
}
|