I get this error when writing to the database:
A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: \'Paym
If you have checked your relationships and are good there.
Delete the table in the edmx and then update from database. This will save you doing the update manually.