Servizi e cose
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
// Add profile data for application users by adding properties to the ApplicationUser class
|
||||
public class ApplicationUser : IdentityUser
|
||||
{
|
||||
}
|
||||
23
StandManager.Domain/Entita/Cliente.cs
Normal file
23
StandManager.Domain/Entita/Cliente.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class Cliente : EntitaBase
|
||||
{
|
||||
public string RagioneSociale { get; set; }
|
||||
public string PartitaIva { get; set; }
|
||||
public string Cap { get; set; }
|
||||
public string Citta { get; set; }
|
||||
public string Indirizzo { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string EmailInvito { get; set; }
|
||||
public string NumeroTelefono { get; set; }
|
||||
|
||||
[ForeignKey(nameof(Agente))]
|
||||
public Guid? AgenteId { get; set; }
|
||||
public Utente Agente { get; set; }
|
||||
|
||||
[InverseProperty(nameof(Destinazione.Cliente))]
|
||||
public List<Destinazione> Destinazioni { get; set; }
|
||||
}
|
||||
26
StandManager.Domain/Entita/Destinazione.cs
Normal file
26
StandManager.Domain/Entita/Destinazione.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class Destinazione : EntitaBase
|
||||
{
|
||||
[ForeignKey(nameof(Cliente))]
|
||||
public Guid? Clienteid { get; set; }
|
||||
public Cliente Cliente { get; set; }
|
||||
public string RagioneSociale { get; set; }
|
||||
public string PartitaIva { get; set; }
|
||||
public string Cap { get; set; }
|
||||
public string Citta { get; set; }
|
||||
public string Indirizzo { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string EmailInvito { get; set; }
|
||||
public string NumeroTelefono { get; set; }
|
||||
|
||||
[ForeignKey(nameof(Agente))]
|
||||
public Guid? AgenteId { get; set; }
|
||||
public Utente Agente { get; set; }
|
||||
|
||||
[InverseProperty(nameof(Referente.Destinazione))]
|
||||
public List<Referente> Referenti { get; set; }
|
||||
}
|
||||
14
StandManager.Domain/Entita/Evento.cs
Normal file
14
StandManager.Domain/Entita/Evento.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class Evento : EntitaBase
|
||||
{
|
||||
public string Titolo { get; set; }
|
||||
public string Descrizione { get; set; }
|
||||
public string Luogo { get; set; }
|
||||
public string TemplateHtmlMailInvito { get; set; }
|
||||
public string TemplateHtmlMailIscrizione { get; set; }
|
||||
public DateTime DataDa { get; set; }
|
||||
public DateTime DataA { get; set; }
|
||||
}
|
||||
24
StandManager.Domain/Entita/IscrizioneEvento.cs
Normal file
24
StandManager.Domain/Entita/IscrizioneEvento.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class IscrizioneEvento : 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; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
24
StandManager.Domain/Entita/Referente.cs
Normal file
24
StandManager.Domain/Entita/Referente.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class Referente : EntitaBase
|
||||
{
|
||||
[ForeignKey(nameof(Destinazione))]
|
||||
public Guid? DestinazioneId { get; set; }
|
||||
public Destinazione Destinazione { get; set; }
|
||||
public string Nome { get; set; }
|
||||
public string Cognome { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string NumeroTelefono { get; set; }
|
||||
public Ruolo Ruolo { get; set; }
|
||||
public string RuoloNote { get; set; }
|
||||
}
|
||||
|
||||
public enum Ruolo
|
||||
{
|
||||
Ruolo1 = 0,
|
||||
Ruolo2,
|
||||
Ruolo3
|
||||
}
|
||||
Reference in New Issue
Block a user