public override int GetHashCode()
        {
            int hashCode = 17;

            hashCode = (hashCode * 11) + DiscountID?.GetHashCode() ?? 0;
            hashCode = (hashCode * 11) + DiscountSequenceID?.GetHashCode() ?? 0;
            return(hashCode);
        }
Exemple #2
0
 public bool Equals([AllowNull] Discount other)
 {
     return(other != null &&
            DiscountID.Equals(other.DiscountID));
 }