|
|
@ -159,6 +159,7 @@ namespace EPAServeur.Context |
|
|
|
{ |
|
|
|
{ |
|
|
|
entity.HasKey(e => e.IdFormation); |
|
|
|
entity.HasKey(e => e.IdFormation); |
|
|
|
entity.Property(e => e.IdFormation).ValueGeneratedOnAdd(); |
|
|
|
entity.Property(e => e.IdFormation).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasMany<ParticipationFormation>(e => e.ParticipationsFormation).WithOne(e => e.Formation); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<ModeFormation>(entity => |
|
|
|
modelBuilder.Entity<ModeFormation>(entity => |
|
|
|