|
|
|
@ -28,10 +28,12 @@ public class MainDbContext : DbContext |
|
|
|
|
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(e => e.Gender) |
|
|
|
|
.HasConversion<string>(); |
|
|
|
|
|
|
|
|
|
modelBuilder |
|
|
|
|
.Entity<CollaborateurSqlDto>() |
|
|
|
|
.Property(e => e.Status) |
|
|
|
|