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.