From 5d4541d601690717c87f114aac0f0b8267f8a32a Mon Sep 17 00:00:00 2001 From: Ino Date: Wed, 3 May 2023 11:25:17 +0400 Subject: [PATCH] fix --- .../IceCreamBusinessLogic/BusinessLogics/ReportLogic.cs | 6 +++--- .../Migrations/IceCreamShopDatabaseModelSnapshot.cs | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/IceCreamShop/IceCreamBusinessLogic/BusinessLogics/ReportLogic.cs b/IceCreamShop/IceCreamBusinessLogic/BusinessLogics/ReportLogic.cs index 3a26f46..657123d 100644 --- a/IceCreamShop/IceCreamBusinessLogic/BusinessLogics/ReportLogic.cs +++ b/IceCreamShop/IceCreamBusinessLogic/BusinessLogics/ReportLogic.cs @@ -128,10 +128,10 @@ namespace IceCreamBusinessLogic.BusinessLogics IceCreams = new List>(), Count = 0 }; - foreach (var docCount in shop.ShopIceCreams.Values) + foreach (var iceCreamCount in shop.ShopIceCreams.Values) { - record.IceCreams.Add(new Tuple(docCount.Item1.IceCreamName, docCount.Item2)); - record.Count += docCount.Item2; + record.IceCreams.Add(new Tuple(iceCreamCount.Item1.IceCreamName, iceCreamCount.Item2)); + record.Count += iceCreamCount.Item2; } list.Add(record); } diff --git a/IceCreamShop/IceCreamShopDatabaseImplement/Migrations/IceCreamShopDatabaseModelSnapshot.cs b/IceCreamShop/IceCreamShopDatabaseImplement/Migrations/IceCreamShopDatabaseModelSnapshot.cs index 3855662..3fe6e46 100644 --- a/IceCreamShop/IceCreamShopDatabaseImplement/Migrations/IceCreamShopDatabaseModelSnapshot.cs +++ b/IceCreamShop/IceCreamShopDatabaseImplement/Migrations/IceCreamShopDatabaseModelSnapshot.cs @@ -209,15 +209,6 @@ namespace IceCreamShopDatabaseImplement.Migrations b.Navigation("IceCream"); }); - modelBuilder.Entity("IceCreamShopDatabaseImplement.Models.Order", b => - { - b.HasOne("IceCreamShopDatabaseImplement.Models.IceCream", null) - .WithMany("Orders") - .HasForeignKey("IceCreamId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - modelBuilder.Entity("IceCreamShopDatabaseImplement.Models.Shop", b => { b.HasOne("IceCreamShopDatabaseImplement.Models.IceCream", null)