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/PlayerEntityChapterEntity.cs

34 lines
982 B

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities
{
/// <summary>
/// a class to storage the maximum score of a player for a chapter
/// properties :
/// IdChapter : identifier of the chapter this is for
/// IdPlayer : identifier of the player this is for
/// Chapter : the chapter this is for
/// Player : the player this is for
/// </summary>
[Table("Play")]
public class PlayerEntityChapterEntity
{
[ForeignKey(nameof(Chapter))]
public uint IdChapter { get; set; }
[ForeignKey(nameof(Player))]
public uint IdPlayer { get; set; }
public ChapterEntity Chapter { get; set; } = null!;
public PlayerEntity Player { get; set; } = null!;
public uint MaxScore { get; set; }
}
}