diff --git a/Webzine.Entity/Fixtures/SeedDataLocal.cs b/Webzine.Entity/Fixtures/SeedDataLocal.cs
index bd2479e..544b730 100644
--- a/Webzine.Entity/Fixtures/SeedDataLocal.cs
+++ b/Webzine.Entity/Fixtures/SeedDataLocal.cs
@@ -1,6 +1,14 @@
-namespace Webzine.Entity.Fixtures;
+//
+// Copyright (c) PlaceholderCompany. All rights reserved.
+//
-public class SeedDataLocal
-{
+namespace Webzine.Entity.Fixtures
+{
+ public class SeedDataLocal
+ {
+ public SeedDataLocal()
+ {
+ }
+ }
}
\ No newline at end of file
diff --git a/Webzine.Repository/DbEntityRepository.cs b/Webzine.Repository/DbEntityRepository.cs
new file mode 100644
index 0000000..3abfeb5
--- /dev/null
+++ b/Webzine.Repository/DbEntityRepository.cs
@@ -0,0 +1,63 @@
+//
+// Copyright (c) PlaceholderCompany. All rights reserved.
+//
+
+namespace Webzine.Repository
+{
+ using Webzine.EntitiesContext;
+ using Webzine.Entity;
+ using Webzine.Entity.Fixtures;
+ using Webzine.Repository.Fake;
+
+ public class DbEntityRepository
+ {
+ private readonly WebzineDbContext context;
+
+ public DbEntityRepository(WebzineDbContext context)
+ {
+ this.context = context;
+ }
+
+ public void SeedBaseDeDonnees(
+ int nbArtistes = 100,
+ int nbTitres = 500,
+ int minStyles = 15,
+ int maxStyles = 20,
+ int minCommentairesParTitre = 0,
+ int maxCommentairesParTitre = 5)
+ {
+ if (this.context.Artistes.Any() ||
+ this.context.Titres.Any() ||
+ this.context.Styles.Any() ||
+ this.context.Commentaires.Any())
+ {
+ return;
+ }
+
+ List artistes = ArtisteFactory.CreerListeArtiste(nbArtistes);
+ List