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

后端 未结 8 1315
旧时难觅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:21

    In my case I had this error because I made another partial class with the same name as the class generated by entity framework. Except mine did not matche the case. For example:

    public partial class Vehicle
    {
        public string Name { get; set; }
        public string Make { get; set; }
        ...
    }
    
    public partial class VEhicle
    {
        public override bool Equals(object obj)
        {
           ...
        }
    }
    

提交回复
热议问题