/// <summary> /// Принять свойства редактированной копии исходного объекта в базе для сохранения изменений. /// </summary> /// <returns></returns> public override void AcceptProps(ComplexDbObject other) { var binaryOther = (BinaryAttachmentModel)other; base.AcceptModelProperties(binaryOther); FullDataDescriptorId = binaryOther.FullDataDescriptorId; }
/// <summary> /// Принять свойства редактированной копии исходного объекта в базе для сохранения изменений. /// </summary> /// <returns></returns> public override void AcceptProps(ComplexDbObject other) { var noteOther = (NoteAttachmentModel)other; base.AcceptModelProperties(noteOther); ChildAttachmentDescriptors.Clear(); ChildAttachmentDescriptors.AddRange(noteOther.ChildAttachmentDescriptors); }
/// <summary> /// Принять свойства редактированной копии исходного объекта в базе для сохранения изменений. /// </summary> /// <returns></returns> public override void AcceptProps(ComplexDbObject other) { base.AcceptProps(other); var photoOther = (PhotoAttachmentModel)other; PreviewDataBlob = photoOther.PreviewDataBlob; ChildAttachmentDescriptors.Clear(); ChildAttachmentDescriptors.AddRange(photoOther.ChildAttachmentDescriptors); }
/// <summary> /// Принять свойства редактированной копии исходного объекта в базе для сохранения изменений. /// </summary> /// <returns></returns> public override void AcceptProps(ComplexDbObject other) { other.AssertNotNull(nameof(other)); AcceptModelProperties((AttachmentModelBase)other); }