A dependent property in a ReferentialConstraint is mapped to a store-generated column

后端 未结 13 1508
终归单人心
终归单人心 2020-11-27 17:23

I get this error when writing to the database:

A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: \'Paym

13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 17:46

    I had the same problem and after some digging in table design in sql server , I found that mistakenly i set table's primary key also as foreign key.

    sql server table design flow

    In this image you can see that JobID is table's primary key but also mistakenly foreign key.

提交回复
热议问题