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.
39 lines
883 B
39 lines
883 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;
|
|
using BowlingEF.Entities;
|
|
|
|
namespace DTOs
|
|
{
|
|
/// <summary>
|
|
/// Classe de gestion des parties
|
|
/// </summary>
|
|
public class PartieDTO
|
|
{
|
|
#region Properties
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long Id { get; set; }
|
|
|
|
public JoueurDTO Joueur { get; set; }
|
|
|
|
public DateTime Date { get; set; }
|
|
public ICollection<FrameDTO> FramesDTO { get; set; }
|
|
|
|
public int? Score { get; set; }
|
|
#endregion
|
|
|
|
#region Constructors
|
|
public PartieDTO()
|
|
{
|
|
FramesDTO = new List<FrameDTO>();
|
|
}
|
|
#endregion
|
|
}
|
|
|
|
}
|