Aggiornamento modifiche x chiudere ODL e creare nuovo

This commit is contained in:
Samuele Locatelli
2022-10-18 08:41:12 +02:00
parent b2e9ae76d4
commit 77e7e39985
9 changed files with 427 additions and 311 deletions
+7
View File
@@ -50,6 +50,7 @@ namespace MP.Data
public virtual DbSet<Dossiers> DbSetDossiers { get; set; }
public virtual DbSet<StatODLModel> DbSetStatOdl { get; set; }
public virtual DbSet<StatoProdModel> DbSetStatoProd { get; set; }
public virtual DbSet<EventListModel> DbSetEvList { get; set; }
#endregion Public Properties
@@ -300,6 +301,12 @@ namespace MP.Data
});
modelBuilder.Entity<EventListModel>(entity =>
{
entity.HasKey(e => new { e.IdxMacchina, e.InizioStato, e.IdxTipo});
});
OnModelCreatingPartial(modelBuilder);
}