|
|
|
@ -62,6 +62,8 @@ namespace EPAServeur.Context |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.IdDocument); |
|
|
|
|
entity.Property(e => e.IdDocument).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasMany<Saisie>(e => e.Saisies).WithOne(e => e.Document); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<Engagement>(entity => |
|
|
|
@ -162,6 +164,7 @@ namespace EPAServeur.Context |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasMany<Saisie>(e => e.Evaluation).WithOne(e => e.ParticipationFormation); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<StatutFormation>(entity => |
|
|
|
@ -195,14 +198,15 @@ namespace EPAServeur.Context |
|
|
|
|
//SaisieChamp |
|
|
|
|
modelBuilder.Entity<Champ>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasKey(e => e.IdChamp); |
|
|
|
|
entity.Property(e => e.IdChamp).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasMany<Saisie>(e => e.Saisies).WithOne(e => e.Champ); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<Saisie>(entity => |
|
|
|
|
{ |
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
entity.HasKey(e => e.IdSaisie); |
|
|
|
|
entity.Property(e => e.IdSaisie).ValueGeneratedOnAdd(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|