Why does the ObjectStateManager property not exist in my db context?
Solution 1:
Try this:
var manager = ((IObjectContextAdapter)dbContext).ObjectContext.ObjectStateManager;
Solution 2:
Try this:
dbContext.Entry(entity).State = EntityState.Modified;