ПИбд-23 Салин Олег Алексеевич Лабораторная работа №4 (Усложненная) #18
@ -90,7 +90,7 @@ namespace IceCreamShopDatabaseImplement.Models
|
||||
if (shopIceCreams != null && shopIceCreams.Count > 0)
|
||||
{
|
||||
context.ShopIceCreams.RemoveRange(shopIceCreams.Where(rec
|
||||
=> !model.ShopIceCreams.ContainsKey(rec.ShopId)));
|
||||
=> !model.ShopIceCreams.ContainsKey(rec.IceCreamId)));
|
||||
|
||||
context.SaveChanges();
|
||||
foreach (var updateIceCream in shopIceCreams)
|
||||
|
Loading…
Reference in New Issue
Block a user