Ejemplo n.º 1
0
 public bool Equals(Product other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ProductExId == other.ProductExId &&
            VendorId == other.VendorId &&
            VendorCode == other.VendorCode &&
            Name == other.Name
            //&& Description == other.Description
            && Batteries == other.Batteries &&
            Pack == other.Pack &&
            Material == other.Material &&
            Length == other.Length &&
            Diameter == other.Diameter &&
            CategoryId == other.CategoryId &&
            Function == other.Function &&
            AddFunction == other.AddFunction &&
            Vibration == other.Vibration &&
            Volume == other.Volume &&
            ModelYear == other.ModelYear &&
            VendorCountry == other.VendorCountry &&
            !Offers.Except(other.Offers).Any());
 }