EF Core Entity States Explained: Detached, Added, Unchanged, Modified and Deleted
EF Core decides what SQL to send by looking at each entity's state. There are five states, and once you know them, SaveChangesAsync stops being mysterious. This guide follows one entity through all of them, printing the state at each step and showing the SQL each save sends.
