|
|
@ -11,6 +11,7 @@ namespace espacecollab.backend.infrastructure.sql |
|
|
|
private DbSet<AgenceSqlDto>? Agence { get; set; } |
|
|
|
private DbSet<AgenceSqlDto>? Agence { get; set; } |
|
|
|
private DbSet<BusinessUnitSqlDto>? BusinessUnit { get; set; } |
|
|
|
private DbSet<BusinessUnitSqlDto>? BusinessUnit { get; set; } |
|
|
|
private DbSet<FonctionSqlDto>? Fonction { get; set; } |
|
|
|
private DbSet<FonctionSqlDto>? Fonction { get; set; } |
|
|
|
|
|
|
|
private DbSet<TechnologieSqlDto>? Technologie { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public MainDbContext(IOptions<SqlOption> sqlSettings) |
|
|
|
public MainDbContext(IOptions<SqlOption> sqlSettings) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -29,6 +30,7 @@ namespace espacecollab.backend.infrastructure.sql |
|
|
|
modelBuilder.Entity<BusinessUnitSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<BusinessUnitSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<AgenceSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<AgenceSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<FonctionSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<FonctionSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
|
|
|
|
modelBuilder.Entity<TechnologieSqlDto>().Property(p => p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<CollaborateurSqlDto>().Property(p=> p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder.Entity<CollaborateurSqlDto>().Property(p=> p.Id).UseMySqlIdentityColumn(); |
|
|
|
modelBuilder |
|
|
|
modelBuilder |
|
|
|
.Entity<CollaborateurSqlDto>() |
|
|
|
.Entity<CollaborateurSqlDto>() |
|
|
|