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
|
|
|
|
|
{
|
2018-12-23 21:36:38 +00:00
|
|
|
|
public ICollection<ArtistGenre> Artists { get; set; }
|
|
|
|
|
|
2019-06-28 21:24:32 +00:00
|
|
|
|
public ICollection<Comment> Comments { get; set; }
|
|
|
|
|
|
2019-07-03 16:21:29 +00:00
|
|
|
|
[Column("name")] [MaxLength(100)] public string Name { get; set; }
|
|
|
|
|
|
2019-07-04 15:50:31 +00:00
|
|
|
|
[Column("normalizedName")] [MaxLength(100)] public string NormalizedName { get; set; }
|
|
|
|
|
|
2019-07-03 16:21:29 +00:00
|
|
|
|
public ICollection<ReleaseGenre> Releases { get; set; }
|
|
|
|
|
|
2018-12-23 21:36:38 +00:00
|
|
|
|
public Genre()
|
|
|
|
|
{
|
2019-07-03 16:21:29 +00:00
|
|
|
|
Releases = new HashSet<ReleaseGenre>();
|
|
|
|
|
Artists = new HashSet<ArtistGenre>();
|
|
|
|
|
Comments = new HashSet<Comment>();
|
2018-12-23 21:36:38 +00:00
|
|
|
|
}
|
2018-11-02 21:04:49 +00:00
|
|
|
|
}
|
2018-11-02 21:11:11 +00:00
|
|
|
|
}
|