42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using StandManager.Domain.Entita.Base;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace StandManager.Domain.Entita;
|
|
|
|
public class InvitoEvento : EntitaBase
|
|
{
|
|
[ForeignKey(nameof(Evento))]
|
|
public Guid? EventoId { get; set; }
|
|
public Evento Evento{ get; set; }
|
|
|
|
[ForeignKey(nameof(Cliente))]
|
|
public Guid? ClienteId { get; set; }
|
|
public Cliente Cliente { get; set; }
|
|
|
|
[InverseProperty(nameof(IscrizioneEvento.InvitoEvento))]
|
|
public List<IscrizioneEvento> IscrizioniEvento { get; set; }
|
|
}
|
|
|
|
public class IscrizioneEvento : EntitaBase
|
|
{
|
|
[ForeignKey(nameof(Evento))]
|
|
public Guid? EventoId { get; set; }
|
|
public Evento Evento{ get; set; }
|
|
|
|
[ForeignKey(nameof(InvitoEvento))]
|
|
public Guid? InvitoEventoId { get; set; }
|
|
public InvitoEvento InvitoEvento { get; set; }
|
|
|
|
[ForeignKey(nameof(Cliente))]
|
|
public Guid? ClienteId { get; set; }
|
|
public Cliente Cliente { get; set; }
|
|
|
|
[ForeignKey(nameof(Destinazione))]
|
|
public Guid? DestinazioneId { get; set; }
|
|
public Destinazione Destinazione { get; set; }
|
|
public int Partecipanti{ get; set; }
|
|
public string Note{ get; set; }
|
|
public string QrCodeCode{ get; set; }
|
|
public bool ScanCompleto{ get; set; }
|
|
public DateTime? DataScan{ get; set; }
|
|
} |