Inizio creazione modelli dati + migrazione iniziale

This commit is contained in:
Samuele Locatelli
2021-12-07 15:13:54 +01:00
parent 61c39aa3d5
commit 7c0c3f25b3
7 changed files with 494 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GPW.CORE.Data.DbModels
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
[Table("CheckVc19")]
public partial class CheckVc19Model
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int IdxCheckVc19 { get; set; }
public DateTime DtCheck { get; set; } = DateTime.Now;
public int IdxDipendente { get; set; }
public string Cognome { get; set; } = null!;
public string Nome { get; set; } = null!;
public DateTime Dob { get; set; }
public string Payload { get; set; } = null!;
/// <summary>
/// Navigation property to Dipendente
/// </summary>
[ForeignKey("IdxDipendente")]
public virtual Dipendenti? DipNav { get; set; }
}
}