DbContext.SaveChangesAsync has no effect on the collection of changed objects
Hi. I get products collection from dbContext, change some values and want to save it in the database, but after SaveChangesAsync () is done in the database there are no changes. When previewing objects from dbContext at the end, I also cannot see the edited fields:
Product is an entity btw.
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Without it, it also does'nt save changes to the database
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
EF tracks this for you
Ok, on the List works