Files
JavaScriptServices/samples/angular/MusicStore/Apis/Models/Genre.cs
SteveSandersonMS f693bd60e3 Initial state
2015-11-02 10:30:36 -08:00

24 lines
492 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; }
}
}