示例#1
0
        /// <summary>
        /// Принять свойства редактированной копии исходного объекта в базе для сохранения изменений.
        /// </summary>
        /// <returns></returns>
        public override void AcceptProps(ComplexDbObject other)
        {
            var binaryOther = (BinaryAttachmentModel)other;

            base.AcceptModelProperties(binaryOther);

            FullDataDescriptorId = binaryOther.FullDataDescriptorId;
        }
示例#2
0
        /// <summary>
        /// Принять свойства редактированной копии исходного объекта в базе для сохранения изменений.
        /// </summary>
        /// <returns></returns>
        public override void AcceptProps(ComplexDbObject other)
        {
            var noteOther = (NoteAttachmentModel)other;

            base.AcceptModelProperties(noteOther);

            ChildAttachmentDescriptors.Clear();
            ChildAttachmentDescriptors.AddRange(noteOther.ChildAttachmentDescriptors);
        }
示例#3
0
        /// <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);
        }