The following can be tried; I haven't personally tried it yet....public ActionResult Index(Categories category)
using (var db = new DoskaUsContext())
foreach (var cat in category)
category.Count = 25;
db.Entry(category).State = EntityState.Modified;
How should a database table's data be updated in the entity framework core?...to make changes, get the table row, and then save...Use the key phrase ...Update... in the database context and handle the exception for the missing item....What have been the improvements over EF6 that we can use?