bgc/BGC.Server/DataLayer/Entities/Genre.cs

18 lines
488 B
C#
Raw Normal View History

2024-08-05 03:22:49 +03:00
using System.ComponentModel.DataAnnotations.Schema;
namespace BGC.Server.DataLayer.Entities
{
[Table("genres")]
public class Genre
{
[Column("id")]
public long Id { get; set; }
[Column("name")]
public required string Name { get; set; }
public virtual ICollection<GameGenre> GameGenres { get; set; } = new List<GameGenre>();
public virtual ICollection<Game> Games { get; set; } = new List<Game>();
}
}