roadie/RoadieLibrary/Data/ArtistGenre.cs

25 lines
555 B
C#
Raw Normal View History

2018-11-02 22:20:36 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("artistGenreTable")]
public partial class ArtistGenre
{
public Artist Artist { get; set; }
[Column("artistId")]
[Required]
public int ArtistId { get; set; }
public Genre Genre { get; set; }
[Column("genreId")]
[Required]
2018-11-03 21:21:36 +00:00
public int? GenreId { get; set; }
2018-11-02 22:20:36 +00:00
[Column("id")]
[Key]
public int Id { get; set; }
}
}