Merge branch 'LabWork04_hard' into LabWork05_hard

This commit is contained in:
Senju 2023-05-03 11:25:59 +04:00
commit 2536db5691
2 changed files with 3 additions and 12 deletions

View File

@ -128,10 +128,10 @@ namespace IceCreamBusinessLogic.BusinessLogics
IceCreams = new List<Tuple<string, int>>(),
Count = 0
};
foreach (var docCount in shop.ShopIceCreams.Values)
foreach (var iceCreamCount in shop.ShopIceCreams.Values)
{
record.IceCreams.Add(new Tuple<string, int>(docCount.Item1.IceCreamName, docCount.Item2));
record.Count += docCount.Item2;
record.IceCreams.Add(new Tuple<string, int>(iceCreamCount.Item1.IceCreamName, iceCreamCount.Item2));
record.Count += iceCreamCount.Item2;
}
list.Add(record);
}

View File

@ -245,15 +245,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)