Iscrizione
This commit is contained in:
@ -20,4 +20,13 @@ public class Cliente : EntitaBase
|
||||
|
||||
[InverseProperty(nameof(Destinazione.Cliente))]
|
||||
public List<Destinazione> Destinazioni { get; set; }
|
||||
|
||||
public string Rid { get; set; }
|
||||
public ClienteTipo TipologiaCliente { get; set; }
|
||||
}
|
||||
|
||||
public enum ClienteTipo
|
||||
{
|
||||
Cliente = 0,
|
||||
Lead = 99
|
||||
}
|
||||
|
||||
@ -3,11 +3,26 @@ 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; }
|
||||
}
|
||||
|
||||
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; }
|
||||
|
||||
Reference in New Issue
Block a user