I wish to reference the OrderAddress
model twice in my Order
model; once as a ShippingAddress
and once as a Billing
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)
{
...
}
}