public override void Modify(AttachmentRecord record) { DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateAttachment"); this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev"); this.MapParametersIn(command, record, true); this.Execute(command); this.MapParametersOut(command, record); }
/// <summary> /// Creates a new <see cref="AttachmentRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="AttachmentRecord" /> object instance. /// </returns> public AttachmentRecord Clone() { AttachmentRecord record = new AttachmentRecord(); record.Id = this.Id; record.Lock = this.Lock; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.RcvDate = this.RcvDate; record.RcvFrom = this.RcvFrom; record.TableId = this.TableId; record.RecordId = this.RecordId; record.FileName = this.FileName; record.FileDesc = this.FileDesc; record.DateEtd = this.DateEtd; record.ChkdBy = this.ChkdBy; record.ChkdDate = this.ChkdDate; record.OrderNum = this.OrderNum; record.OrglName = this.OrglName; record.VersionNo = this.VersionNo; record.Template = this.Template; record.SourceData = this.SourceData; record.Type = this.Type; record.ChkdOutDate = this.ChkdOutDate; record.ChkdOutBy = this.ChkdOutBy; record.ChkdInDate = this.ChkdInDate; record.ChkdInBy = this.ChkdInBy; record.PicId = this.PicId; record.Text = this.Text; record.UrlPath = this.UrlPath; record.Pagesetup = this.Pagesetup; record.Compress = this.Compress; record.Extension = this.Extension; record.Attrib01 = this.Attrib01; record.Web = this.Web; record.PrintOnly = this.PrintOnly; record.EmailOnly = this.EmailOnly; record.UgName = this.UgName; record.Category = this.Category; record.StartOffset = this.StartOffset; record.EndOffset = this.EndOffset; record.Mime = this.Mime; record.Size = this.Size; record.Visibility = this.Visibility; record.Archived = this.Archived; record.ArchiveFile = this.ArchiveFile; record.ArchiveBatId = this.ArchiveBatId; record.TableUrl = this.TableUrl; return(record); }
/// <summary> /// Indicates whether the current <see cref="AttachmentRecord" /> instance is equal to another <see cref="AttachmentRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="AttachmentRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(AttachmentRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify()); result = result && (this.TableId == that.TableId); result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify()); result = result && (this.FileName.TrimOrNullify() == that.FileName.TrimOrNullify()); result = result && (this.FileDesc.TrimOrNullify() == that.FileDesc.TrimOrNullify()); result = result && (this.DateEtd == that.DateEtd); result = result && (this.ChkdBy.TrimOrNullify() == that.ChkdBy.TrimOrNullify()); result = result && (this.ChkdDate == that.ChkdDate); result = result && (this.OrderNum == that.OrderNum); result = result && (this.OrglName.TrimOrNullify() == that.OrglName.TrimOrNullify()); result = result && (this.VersionNo == that.VersionNo); result = result && (this.Template.TrimOrNullify() == that.Template.TrimOrNullify()); result = result && (this.SourceData.TrimOrNullify() == that.SourceData.TrimOrNullify()); result = result && (this.Type == that.Type); result = result && (this.ChkdOutDate == that.ChkdOutDate); result = result && (this.ChkdOutBy.TrimOrNullify() == that.ChkdOutBy.TrimOrNullify()); result = result && (this.ChkdInDate == that.ChkdInDate); result = result && (this.ChkdInBy.TrimOrNullify() == that.ChkdInBy.TrimOrNullify()); result = result && (this.PicId.TrimOrNullify() == that.PicId.TrimOrNullify()); result = result && (this.Text.TrimOrNullify() == that.Text.TrimOrNullify()); result = result && (this.UrlPath.TrimOrNullify() == that.UrlPath.TrimOrNullify()); result = result && (this.Pagesetup.TrimOrNullify() == that.Pagesetup.TrimOrNullify()); result = result && (this.Compress == that.Compress); result = result && (this.Extension.TrimOrNullify() == that.Extension.TrimOrNullify()); result = result && (this.Attrib01.TrimOrNullify() == that.Attrib01.TrimOrNullify()); result = result && (this.Web == that.Web); result = result && (this.PrintOnly == that.PrintOnly); result = result && (this.EmailOnly == that.EmailOnly); result = result && (this.UgName.TrimOrNullify() == that.UgName.TrimOrNullify()); result = result && (this.Category.TrimOrNullify() == that.Category.TrimOrNullify()); result = result && (this.StartOffset == that.StartOffset); result = result && (this.EndOffset == that.EndOffset); result = result && (this.Mime.TrimOrNullify() == that.Mime.TrimOrNullify()); result = result && (this.Size == that.Size); result = result && (this.Visibility == that.Visibility); result = result && (this.Archived == that.Archived); result = result && (this.ArchiveFile.TrimOrNullify() == that.ArchiveFile.TrimOrNullify()); result = result && (this.ArchiveBatId.TrimOrNullify() == that.ArchiveBatId.TrimOrNullify()); result = result && (this.TableUrl.TrimOrNullify() == that.TableUrl.TrimOrNullify()); return(result); }