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

26 lines
623 B
C#
Raw Normal View History

2018-11-02 21:11:11 +00:00
using System.ComponentModel.DataAnnotations;
2018-11-02 21:04:49 +00:00
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("releaseGenreTable")]
public partial class ReleaseGenre
{
2018-11-02 21:11:11 +00:00
public Genre Genre { get; set; }
[Column("genreId")]
[Required]
2018-11-03 21:21:36 +00:00
public int? GenreId { get; set; }
2018-11-02 21:11:11 +00:00
2018-11-02 21:04:49 +00:00
[Column("id")]
[Key]
2018-12-23 21:36:38 +00:00
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2018-11-02 21:04:49 +00:00
public int Id { get; set; }
public Release Release { get; set; }
2018-11-02 21:11:11 +00:00
[Column("releaseId")]
2018-11-02 21:04:49 +00:00
[Required]
2018-11-02 21:11:11 +00:00
public int ReleaseId { get; set; }
2018-11-02 21:04:49 +00:00
}
2018-11-02 21:11:11 +00:00
}