/// <summary>
        /// local implementation of Equals based on unique value members
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }

            SPPaymentInfoEntity castObj = (SPPaymentInfoEntity)obj;

            return((castObj != null) && (this._id == castObj.Id));
        }
Exemple #2
0
        internal static SPPaymentInfoWrapper ConvertEntityToWrapper(SPPaymentInfoEntity entity)
        {
            if (entity == null)
                return null;
				
            if (entity.Id == 0)
                return null;

            return new SPPaymentInfoWrapper(entity);
        }
Exemple #3
0
 internal SPPaymentInfoWrapper(SPPaymentInfoEntity entityObj)
 {
     entity = entityObj;
 }