namespace Nop.Core.Domain.Media; /// /// Helper class for making pictures hashes from DB /// public partial class PictureHashItem : IComparable, IComparable { /// /// Gets or sets the picture ID /// public int PictureId { get; set; } /// /// Gets or sets the picture hash /// public byte[] Hash { get; set; } /// /// Compares this instance to a specified and returns an indication /// /// An object to compare with this instance /// public int CompareTo(object obj) { return CompareTo(obj as PictureHashItem); } /// /// Compares this instance to a specified and returns an indication /// /// An object to compare with this instance /// public int CompareTo(PictureHashItem other) { return other == null ? -1 : PictureId.CompareTo(other.PictureId); } }