Schema specified is not valid. Errors: The relationship was not loaded because the type is not available

后端 未结 8 1449
旧时难觅i
旧时难觅i 2021-02-05 02:53

I wish to reference the OrderAddress model twice in my Order model; once as a ShippingAddress and once as a Billing

8条回答
  •  心在旅途
    2021-02-05 03:13

    This is common in self relation entities. in this case:

    1-check to have ICollection, List, ... relation collection for each relation.

    2-check name of relation collections.

    3-in code first, check your EntityTypeConfiguration

提交回复
热议问题