roadie/Roadie.Api.Library/Data/Genre.cs
2018-12-26 13:39:13 -06:00

23 lines
No EOL
619 B
C#

using System.Collections.Generic;
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; }
public ICollection<ArtistGenre> Artists { get; set; }
public Genre()
{
this.Releases = new HashSet<ReleaseGenre>();
this.Artists = new HashSet<ArtistGenre>();
}
}
}