I get this error when writing to the database:
A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: \'Paym
In my case it was simply that I did not have permissions set properly on the database. I had read only set and Entity framework was giving me a ReferentialConstraint error which threw me off. Added additional write permissions and all was well.