public override int GetHashCode() { int hash = 1; if (GoodsSn.Length != 0) { hash ^= GoodsSn.GetHashCode(); } if (GoodsName.Length != 0) { hash ^= GoodsName.GetHashCode(); } if (Qty != 0) { hash ^= Qty.GetHashCode(); } if (Price != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public static GoodsData Find(GoodsName name) { return(GoodsDataList[name.ToString()]); }
protected override void OnCollect(ICriteriaPool <iM> pool) { pool.Add(x => ((IIdentityGetter <S>)x).ID == Id, Id.IsTruthy()); pool.Add(x => x.GoodsName.Contains(GoodsName), GoodsName.IsTruthy()); }