From e2123679b7352182237bb210fa80139f24f03f48 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Fri, 18 Feb 2022 11:40:43 +0100 Subject: [PATCH] ajout du context agence pour fonctionnement DB --- .../espacecollab.backend.infrastructure.sql/MainDbContext.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/MainDbContext.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/MainDbContext.cs index 247426c..bae9763 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/MainDbContext.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/MainDbContext.cs @@ -8,6 +8,7 @@ namespace espacecollab.backend.infrastructure.sql { private IOptions SqlSettings { get; } private DbSet? Collaborateur { get; set; } + private DbSet? Agence { get; set; } public MainDbContext(IOptions sqlSettings) { @@ -23,6 +24,7 @@ namespace espacecollab.backend.infrastructure.sql protected override void OnModelCreating(ModelBuilder modelBuilder) { + modelBuilder.Entity().Property(p => p.Id).UseMySqlIdentityColumn(); modelBuilder.Entity().Property(p=> p.Id).UseMySqlIdentityColumn(); modelBuilder .Entity()