当前位置: 首页 > 工具软件 > astore > 使用案例 >

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

殳毅
2023-12-01

http://stackoverflow.com/questions/7094514/ef-errora-dependent-property-in-a-referentialconstraint-is-mapped-to-a-store

Question

When you try to put in the product in the cart breaks my mistake

{"A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: 'ShippingCardID'."}

InnerError: {"A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: 'ShippingCardID'."}

Answer

You have incorrectly defined relations between entities. This error says that ShippingCardID is used as foreign key (= dependent property) in some relation which is not allowed because only properties withStoreGeneratedPattern.None can be used as foreign keys.


 类似资料:

相关阅读

相关文章

相关问答