roadie/Roadie.Api.Library/Data/Genre.cs

23 lines
619 B
C#
Raw Normal View History

2018-11-02 21:11:11 +00:00
using System.Collections.Generic;
2018-11-02 21:04:49 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("genre")]
public partial class Genre : EntityBase
{
[Column("name")]
[MaxLength(100)]
public string Name { get; set; }
public ICollection<ReleaseGenre> Releases { get; set; }
2018-12-23 21:36:38 +00:00
public ICollection<ArtistGenre> Artists { get; set; }
public Genre()
{
this.Releases = new HashSet<ReleaseGenre>();
this.Artists = new HashSet<ArtistGenre>();
}
2018-11-02 21:04:49 +00:00
}
2018-11-02 21:11:11 +00:00
}