Creating the relationship is not enough. You must provide information such as the discriminator column, base class discriminator value, and derived class discriminator value.