Код: Выделить всё
foreach(var n in animalbirdAdoptionDetails)
{
int animalBirdsId = n.AnimalsAndBirdsId;
int NoAnimal = Convert.ToInt32(n.NoAnimalsAdopted);
n.isActive = false;
context.NameOfAnimalsAndBirds.Update(e2 => new entity
{
quantity = e2.quantity + moreQuantity
});
context.SaveChanges();
}
Подробнее здесь: https://stackoverflow.com/questions/563 ... le-extensi
Мобильная версия