Update struttura codifica eventi + seed dei relativi dati

This commit is contained in:
Samuele Locatelli
2022-02-11 18:40:34 +01:00
parent b578aa6754
commit 37428d7606
7 changed files with 1241 additions and 35 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ namespace MP.MONO.Data.DbModels
/// <summary>
/// Tipologia di evento registrato
/// </summary>
public int CodEventId { get; set; }
public string CodEvent { get; set; } = "";
/// <summary>
/// Valore opzionale associato
@@ -48,7 +48,7 @@ namespace MP.MONO.Data.DbModels
/// <summary>
/// Navigazione oggetto Evento
/// </summary>
[ForeignKey("CodEventId")]
public virtual CodEventModel CodEventNav { get; set; } = null!;
[ForeignKey("CodEvent")]
public virtual EventModel CodEventNav { get; set; } = null!;
}
}