#106 Mis en place du nécessaire pour Postgresql et configuration "UseDatabase" et "IsSQLite" opérationnel.
This commit is contained in:
@@ -43,6 +43,8 @@ namespace Webzine.EntitiesContext
|
||||
|
||||
modelBuilder.Entity<Artiste>(entity =>
|
||||
{
|
||||
entity.ToTable("Artistes");
|
||||
|
||||
entity.HasKey(a => a.IdArtiste)
|
||||
.HasName("PK_Artiste");
|
||||
|
||||
@@ -54,12 +56,16 @@ namespace Webzine.EntitiesContext
|
||||
|
||||
modelBuilder.Entity<Style>(entity =>
|
||||
{
|
||||
entity.ToTable("Styles");
|
||||
|
||||
entity.HasKey(s => s.IdStyle)
|
||||
.HasName("PK_Style");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Commentaire>(entity =>
|
||||
{
|
||||
entity.ToTable("Commentaires");
|
||||
|
||||
entity.HasKey(c => c.IdCommentaire)
|
||||
.HasName("PK_Commentaire");
|
||||
|
||||
@@ -71,6 +77,8 @@ namespace Webzine.EntitiesContext
|
||||
|
||||
modelBuilder.Entity<Titre>(entity =>
|
||||
{
|
||||
entity.ToTable("Titres");
|
||||
|
||||
entity.HasKey(t => t.IdTitre)
|
||||
.HasName("PK_Titre");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user