Merge branch 'LabWork04_hard' into LabWork05_hard
This commit is contained in:
commit
2536db5691
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user