Why become referential constraints inconsistent after updating foreign key?
问题 Sorry for the nebulous title, it's hard to describe this in a single line: I have 2 entities User and UserAddress , where User has 2 foreign keys DefaultInvoiceAddressId and DefaultDeliveryAddressId and UserAddress has a UserId foreign key. The user object has navigation properties for the default addresses ( DefaultInvoiceAddress and DefaultDeliveryAddress ) as well as one for all of his addresses: AllAddresses . The mapping etc. works, creating and updating users and addresses works too.