|
|
|
@ -154,6 +154,8 @@ namespace EPAServeur.Context |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.IdDemandeFormation); |
|
|
|
|
entity.Property(e => e.IdDemandeFormation).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasOne<ParticipationFormation>(e => e.ParticipationFormation).WithOne(e => e.DemandeFormation).HasForeignKey<ParticipationFormation>(d => d.IdParticipationFormation); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<Formation>(entity => |
|
|
|
@ -189,8 +191,6 @@ namespace EPAServeur.Context |
|
|
|
|
entity.HasKey(e => e.IdParticipationFormation); |
|
|
|
|
entity.Property(e => e.IdParticipationFormation).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasMany<Saisie>(e => e.Evaluation).WithOne(e => e.ParticipationFormation); |
|
|
|
|
entity.HasOne<DemandeFormation>(e => e.DemandeFormation).WithOne(a => a.ParticipationFormation).HasForeignKey<DemandeFormation>(a => a.IdDemandeFormation); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<StatutFormation>(entity => |
|
|
|
|