I have a small model created using code-first approach - a class City which contains only information about city name.
City
public class City { p
You need to set the State of your city when you attach it to unchanged
State
context.Entry(city).State = EntityState.Unchanged;