SaveChanges()
Example :
book
rating will be detected and persisted to the
database during SaveChanges()
. using (var context = new BookContext())
{
var book = context.Books.FirstOrDefault(b => b.BookId == 1);
book.Rating = 5;
context.SaveChanges();
}