Wrote tests for most services, applied EF core optimisations

This commit is contained in:
Khwezi Mngoma
2026-05-29 01:05:22 +02:00
parent 4e53ff8a37
commit 2546c34ffc
22 changed files with 793 additions and 297 deletions
@@ -57,7 +57,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b.HasIndex("ProductId");
b.ToTable("Books");
b.ToTable("Books", (string)null);
});
modelBuilder.Entity("LiteCharms.Features.MidrandBooks.Authors.Entities.Author", b =>
@@ -454,7 +454,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b.HasKey("Id");
b.ToTable("ShippingProviders");
b.ToTable("ShippingProviders", (string)null);
});
modelBuilder.Entity("LiteCharms.Features.MidrandBooks.Pages.Entities.BookPage", b =>
@@ -677,7 +677,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b.HasIndex("ProductId")
.IsUnique();
b.ToTable("ProductPrice");
b.ToTable("ProductPrice", (string)null);
});
modelBuilder.Entity("LiteCharms.Features.MidrandBooks.AuthorBooks.Entities.AuthorBook", b =>
@@ -718,7 +718,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b1.HasKey("AuthorId", "__synthesizedOrdinal");
b1.ToTable("Authors");
b1.ToTable("Authors", (string)null);
b1
.ToJson("SocialMedia")
@@ -772,7 +772,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b1.HasKey("CustomerId", "__synthesizedOrdinal");
b1.ToTable("Customers");
b1.ToTable("Customers", (string)null);
b1
.ToJson("SocialMedia")
@@ -862,7 +862,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b1.HasKey("BookPageId", "__synthesizedOrdinal");
b1.ToTable("BookPages");
b1.ToTable("BookPages", (string)null);
b1
.ToJson("References")
@@ -904,7 +904,7 @@ namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations
b1.HasKey("ProductId");
b1.ToTable("Products");
b1.ToTable("Products", (string)null);
b1
.ToJson("Metadata")