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

后端 未结 13 1474
终归单人心
终归单人心 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:55

    For me it was a wrongly placed foreign key in the table but even after altering the table to fix it, it was still not working. You need to update the EDMX files (and not enough to "refresh" the table from the model, you need to remove and add the table again in the model).

提交回复
热议问题