I\'m trying to update a model, but get the error \"The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable.
One thing of note is that you shouldn't have the [Required] on Customer as its inferred from the fact that your FK isn't nullable. Required should only be used on a navigation property if you do not have the FK in the model.
To try to diagnose the issue, can you load the object and look at it in a debugger, you should expect that both locationId and CustomerId have non-zero values.