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.
26 lines
629 B
26 lines
629 B
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DataBase.Entity
|
|
{
|
|
public class Game
|
|
{
|
|
public int gameId { get; set; }
|
|
public int durationGame { get; set; }
|
|
public int nbMaxEchanges { get; set; }
|
|
public int winner { get; set; }
|
|
public int loser { get; set; }
|
|
|
|
public int scoreWinner { get; set; }
|
|
|
|
public int scoreLoser { get; set; }
|
|
|
|
[ForeignKey("winner")]
|
|
public Player PlayerWinner { get; set; }
|
|
|
|
[ForeignKey("loser")]
|
|
public Player PlayerLoser { get; set; }
|
|
}
|
|
}
|