Tsukanova_I.V. LabWork05_hard #13

Closed
Inohara wants to merge 29 commits from LabWork05_hard into LabWork05
2 changed files with 3 additions and 12 deletions
Showing only changes of commit 2536db5691 - Show all commits

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)