You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.01-QCM_MuscuMaths/WebApi/Entities/LobbyEntityPlayerEntity.cs

28 lines
840 B

using System.ComponentModel.DataAnnotations.Schema;
namespace Entities
{
[Table("Use")]
public class LobbyEntityPlayerEntity
{
/// <summary>
/// a class just to match with the model (this is the "utiliser" entity)
/// properties :
/// IdLobby : identifier of the lobby this is for
/// IdPlayer : identifier of the player this is for
/// Lobby : the lobby this is for
/// Player : the player this is for
/// </summary>
[ForeignKey(nameof(Lobby))]
public uint IdLobby { get; set; }
[ForeignKey(nameof(Player))]
public uint IdPlayer { get; set; }
public LobbyEntity Lobby { get; set; } = null!;
public PlayerEntity Player { get; set; } = null!;
public uint MaxScore { get; set; }
}
}