Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BarCode != null ? BarCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Price.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPublished.GetHashCode();
         hashCode = (hashCode * 397) ^ (Dimensions != null ? Dimensions.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ManufacturerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Pictures != null ? Pictures.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CategoryId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ProductTypeId;
         hashCode = (hashCode * 397) ^ (ProductType != null ? ProductType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExternalSourceName != null ? ExternalSourceName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExternalId != null ? ExternalId.GetHashCode() : 0);
         return(hashCode);
     }
 }