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()