|
|
|
@ -113,6 +113,29 @@ namespace EPAServeur.Context |
|
|
|
|
entity.HasKey(e => e.IdCollaborateur); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<ChoixTypeEntretien>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.Ordre); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<DemandeDelegation>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.IdDemandeDelegation); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<DemandeEPI>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.IdDemandeEPI); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<ParticipationEP>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.IdParticipationEP); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<TypeEntretien>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.IdTypeEntretien); |
|
|
|
@ -164,6 +187,8 @@ 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 => |
|
|
|
|