I wish to reference the OrderAddress
model twice in my Order
model; once as a ShippingAddress
and once as a Billing
I got the same error using database first: "The relationship was not loaded because the type ... is not available". The problem was the model in the solution was outdated. To fix the problem:
Your edmx now should be updated with the latest database changes.