Decide avec l'utilisateur avant la sortie du projet, en acceptant de repartir d'une base vierge en production. ⚠ Aucune base anterieure n'est plus migrable : __EFMigrationsHistory d'une installation existante contient les quinze anciens noms, et EF Core tenterait de recreer des tables deja presentes. La mise a jour echouerait, et son retour arriere aussi. La seule voie sur un serveur installe est remove --purge puis reinstallation — sans le --purge, data_dir survit et l'ancienne base revient avec son historique incompatible. La fusion est verifiee, pas supposee : les deux schemas ont ete appliques sur deux bases SQLite vierges puis compares. 97 colonnes identiques, 27 index identiques, 11 cles etrangeres identiques avec leurs modes ON DELETE. Les deux SET NULL, le RESTRICT des auteurs, les trois index uniques partiels et les deux index qui cohabitent sur Prets.LivreId sont tous preserves. Deux ecarts subsistent, sans effet : l'ordre physique des colonnes, et les DEFAULT 0 de Role, TypeDocument et Rang, qui n'existaient que pour remplir les lignes deja presentes lors d'un AddColumn. Deux SQL de reprise de donnees disparaissent avec leurs migrations (StatutPersonnelEtTableAuteurs, RangDesEnvies). MigrationRangDesEnviesTests, qui migrait jusqu'a ListeDEnvies pour eprouver le second, n'a plus d'objet : 628 tests -> 626. Verifie en execution sur une base creee de zero : creation d'un livre, recherche sans accents, pret, et second pret refuse par l'index unique partiel. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
694 lines
23 KiB
C#
694 lines
23 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using MaBibli.Api.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace MaBibli.Api.Data.Migrations
|
|
{
|
|
[DbContext(typeof(MaBibliDbContext))]
|
|
[Migration("20260822104741_InitialCreate")]
|
|
partial class InitialCreate
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.11");
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.ArticleUne", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("NumeroRevueId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Position")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NumeroRevueId", "TitreNormalise")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ArticlesUne");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Auteur", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CleRegroupement")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Nom")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NomNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CleRegroupement")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("NomNormalise");
|
|
|
|
b.ToTable("Auteurs");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.BibliographieMasquee", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AuteurId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Utilisateur")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Utilisateur", "AuteurId");
|
|
|
|
b.HasIndex(new[] { "AuteurId", "Utilisateur", "TitreNormalise" }, "IX_BibliographiesMasquees_Auteur_Utilisateur_Titre")
|
|
.IsUnique();
|
|
|
|
b.ToTable("BibliographiesMasquees");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.ElementSerie", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("LivreId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Position")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SerieId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LivreId");
|
|
|
|
b.HasIndex(new[] { "SerieId" }, "IX_ElementsSerie_SerieId");
|
|
|
|
b.HasIndex(new[] { "SerieId", "LivreId" }, "IX_ElementsSerie_SerieId_LivreId")
|
|
.IsUnique()
|
|
.HasFilter("\"LivreId\" IS NOT NULL");
|
|
|
|
b.ToTable("ElementsSerie");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Livre", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AjoutePar")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CoverUrl")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("DateAjout")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Editeur")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Format")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Isbn")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("NombrePages")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("TypeDocument")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UrlNotice")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Isbn");
|
|
|
|
b.HasIndex("TitreNormalise");
|
|
|
|
b.ToTable("Livres");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.LivreAuteur", b =>
|
|
{
|
|
b.Property<int>("LivreId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AuteurId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Position")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Role")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("LivreId", "AuteurId");
|
|
|
|
b.HasIndex("AuteurId");
|
|
|
|
b.ToTable("LivreAuteurs");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.LivreSouhaite", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Annee")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Auteur")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AuteurNormalise")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("");
|
|
|
|
b.Property<string>("CoverUrl")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("DateAjout")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Editeur")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Isbn")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Note")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Rang")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Utilisateur")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex(new[] { "Utilisateur" }, "IX_LivresSouhaites_Utilisateur");
|
|
|
|
b.HasIndex(new[] { "Utilisateur", "TitreNormalise", "AuteurNormalise" }, "IX_LivresSouhaites_Utilisateur_Oeuvre")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LivresSouhaites");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.LivreTheme", b =>
|
|
{
|
|
b.Property<int>("LivreId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ThemeId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("LivreId", "ThemeId");
|
|
|
|
b.HasIndex("ThemeId");
|
|
|
|
b.ToTable("LivreThemes");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.NumeroRevue", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CoverUrl")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("DateAjout")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DateParution")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Note")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Numero")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NumeroNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RevueId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RevueId", "NumeroNormalise")
|
|
.IsUnique();
|
|
|
|
b.ToTable("NumerosRevue");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Pret", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("DatePret")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DateRetour")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Emprunteur")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("LivreId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex(new[] { "LivreId" }, "IX_Prets_LivreId");
|
|
|
|
b.HasIndex(new[] { "LivreId" }, "IX_Prets_LivreId_EnCours")
|
|
.IsUnique()
|
|
.HasFilter("\"DateRetour\" IS NULL");
|
|
|
|
b.ToTable("Prets");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.RapprochementRefuse", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AuteurAId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AuteurBId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AuteurAId", "AuteurBId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RapprochementsRefuses");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Revue", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AjoutePar")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("DateAjout")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Editeur")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Issn")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TitreNormalise")
|
|
.IsUnique();
|
|
|
|
b.HasIndex(new[] { "Issn" }, "IX_Revues_Issn")
|
|
.IsUnique()
|
|
.HasFilter("\"Issn\" IS NOT NULL");
|
|
|
|
b.ToTable("Revues");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.RevueSouhaitee", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("DateAjout")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Issn")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Note")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Numero")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NumeroNormalise")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("");
|
|
|
|
b.Property<int>("Rang")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Utilisateur")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex(new[] { "Utilisateur" }, "IX_RevuesSouhaitees_Utilisateur");
|
|
|
|
b.HasIndex(new[] { "Utilisateur", "TitreNormalise", "NumeroNormalise" }, "IX_RevuesSouhaitees_Utilisateur_Revue")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RevuesSouhaitees");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Serie", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AjoutePar")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("DateAjout")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Position")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("SerieParenteId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Titre")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TitreNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SerieParenteId");
|
|
|
|
b.HasIndex("TitreNormalise")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Series");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.StatutLecture", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("DateMaj")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("LivreId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Statut")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Utilisateur")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Utilisateur");
|
|
|
|
b.HasIndex("LivreId", "Utilisateur")
|
|
.IsUnique();
|
|
|
|
b.ToTable("StatutsLecture");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Theme", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Nom")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NomNormalise")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NomNormalise")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Themes");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.ArticleUne", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.NumeroRevue", "NumeroRevue")
|
|
.WithMany("Articles")
|
|
.HasForeignKey("NumeroRevueId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("NumeroRevue");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.ElementSerie", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Livre", "Livre")
|
|
.WithMany()
|
|
.HasForeignKey("LivreId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("MaBibli.Shared.Entites.Serie", "Serie")
|
|
.WithMany("Elements")
|
|
.HasForeignKey("SerieId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Livre");
|
|
|
|
b.Navigation("Serie");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.LivreAuteur", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Auteur", "Auteur")
|
|
.WithMany("Livres")
|
|
.HasForeignKey("AuteurId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("MaBibli.Shared.Entites.Livre", "Livre")
|
|
.WithMany("Auteurs")
|
|
.HasForeignKey("LivreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Auteur");
|
|
|
|
b.Navigation("Livre");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.LivreTheme", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Livre", "Livre")
|
|
.WithMany("Themes")
|
|
.HasForeignKey("LivreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("MaBibli.Shared.Entites.Theme", "Theme")
|
|
.WithMany("Livres")
|
|
.HasForeignKey("ThemeId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Livre");
|
|
|
|
b.Navigation("Theme");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.NumeroRevue", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Revue", "Revue")
|
|
.WithMany("Numeros")
|
|
.HasForeignKey("RevueId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Revue");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Pret", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Livre", "Livre")
|
|
.WithMany("Prets")
|
|
.HasForeignKey("LivreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Livre");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Serie", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Serie", "SerieParente")
|
|
.WithMany("SousSeries")
|
|
.HasForeignKey("SerieParenteId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.Navigation("SerieParente");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.StatutLecture", b =>
|
|
{
|
|
b.HasOne("MaBibli.Shared.Entites.Livre", "Livre")
|
|
.WithMany("Statuts")
|
|
.HasForeignKey("LivreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Livre");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Auteur", b =>
|
|
{
|
|
b.Navigation("Livres");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Livre", b =>
|
|
{
|
|
b.Navigation("Auteurs");
|
|
|
|
b.Navigation("Prets");
|
|
|
|
b.Navigation("Statuts");
|
|
|
|
b.Navigation("Themes");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.NumeroRevue", b =>
|
|
{
|
|
b.Navigation("Articles");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Revue", b =>
|
|
{
|
|
b.Navigation("Numeros");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Serie", b =>
|
|
{
|
|
b.Navigation("Elements");
|
|
|
|
b.Navigation("SousSeries");
|
|
});
|
|
|
|
modelBuilder.Entity("MaBibli.Shared.Entites.Theme", b =>
|
|
{
|
|
b.Navigation("Livres");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|