|
|
@ -19,17 +19,21 @@ namespace EPAServeur.Context |
|
|
|
public DbSet<Document> Document { get; set; } |
|
|
|
public DbSet<Document> Document { get; set; } |
|
|
|
public DbSet<Engagement> Engagement { get; set; } |
|
|
|
public DbSet<Engagement> Engagement { get; set; } |
|
|
|
public DbSet<Ep> Ep { get; set; } |
|
|
|
public DbSet<Ep> Ep { get; set; } |
|
|
|
public DbSet<Objectif> Objectifs { get; set; } |
|
|
|
public DbSet<Objectif> Objectif { get; set; } |
|
|
|
public DbSet<ObjectifPrecedent> ObjectifPrecedents { get; set; } |
|
|
|
public DbSet<ObjectifPrecedent> ObjectifPrecedent { get; set; } |
|
|
|
public DbSet<RdvEntretien> RdvEntretiens { get; set; } |
|
|
|
public DbSet<RdvEntretien> RdvEntretien { get; set; } |
|
|
|
public DbSet<TypeEntretien> TypeEntretien { get; set; } |
|
|
|
public DbSet<TypeEntretien> TypeEntretien { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
//Formation |
|
|
|
//Formation |
|
|
|
public DbSet<DemandeFormation> DemandeFormation { get; set; } |
|
|
|
public DbSet<DemandeFormation> DemandeFormation { get; set; } |
|
|
|
public DbSet<Formation> Formation { get; set; } |
|
|
|
public DbSet<Formation> Formation { get; set; } |
|
|
|
|
|
|
|
public DbSet<ModeFormation> ModeFormation { get; set; } |
|
|
|
|
|
|
|
public DbSet<OrigineDemandeFormation> OrigineDemandeFormation { get; set; } |
|
|
|
|
|
|
|
public DbSet<OrigineFormation> OrigineFormation { get; set; } |
|
|
|
public DbSet<ParticipationFormation> ParticipationFormation { get; set; } |
|
|
|
public DbSet<ParticipationFormation> ParticipationFormation { get; set; } |
|
|
|
public DbSet<StatutFormation> StatutFormation { get; set; } |
|
|
|
public DbSet<StatutFormation> StatutFormation { get; set; } |
|
|
|
public DbSet<Theme> Theme { get; set; } |
|
|
|
public DbSet<Theme> Theme { get; set; } |
|
|
|
|
|
|
|
public DbSet<TypeFormation> TypeFormation { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
//Note |
|
|
|
//Note |
|
|
|
public DbSet<Note> Note { get; set; } |
|
|
|
public DbSet<Note> Note { get; set; } |
|
|
@ -110,6 +114,7 @@ namespace EPAServeur.Context |
|
|
|
modelBuilder.Entity<TypeEntretien>(entity => |
|
|
|
modelBuilder.Entity<TypeEntretien>(entity => |
|
|
|
{ |
|
|
|
{ |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//Formation |
|
|
|
//Formation |
|
|
@ -125,6 +130,27 @@ namespace EPAServeur.Context |
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<ModeFormation>(entity => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<OrigineDemandeFormation>(entity => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<OrigineFormation>(entity => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<ParticipationFormation>(entity => |
|
|
|
modelBuilder.Entity<ParticipationFormation>(entity => |
|
|
|
{ |
|
|
|
{ |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
entity.HasKey(e => e.Id); |
|
|
@ -135,12 +161,21 @@ namespace EPAServeur.Context |
|
|
|
{ |
|
|
|
{ |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<Theme>(entity => |
|
|
|
modelBuilder.Entity<Theme>(entity => |
|
|
|
{ |
|
|
|
{ |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<TypeFormation>(entity => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
entity.HasKey(e => e.Id); |
|
|
|
|
|
|
|
entity.Property(e => e.Id).ValueGeneratedOnAdd(); |
|
|
|
|
|
|
|
entity.HasIndex(e => e.Libelle).IsUnique(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//Notes |
|
|
|
//Notes |
|
|
|