/// <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)); }
internal static SPPaymentInfoWrapper ConvertEntityToWrapper(SPPaymentInfoEntity entity) { if (entity == null) return null; if (entity.Id == 0) return null; return new SPPaymentInfoWrapper(entity); }
internal SPPaymentInfoWrapper(SPPaymentInfoEntity entityObj) { entity = entityObj; }