Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static GoodsData Find(GoodsName name)
 {
     return(GoodsDataList[name.ToString()]);
 }
Ejemplo n.º 3
0
 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());
 }