Exemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="acts_files"/> to an instance of <see cref="acts_filesDTO"/>.
        /// </summary>
        /// <param name="entity"><see cref="acts_files"/> to convert.</param>
        public static acts_filesDTO ToDTO(this acts_files entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new acts_filesDTO();

            dto.id_acts_files = entity.id_acts_files;
            dto.id_act        = entity.id_act;
            dto.id_file       = entity.id_file;

            entity.OnDTO(dto);

            return(dto);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="acts_filesDTO"/> to an instance of <see cref="acts_files"/>.
        /// </summary>
        /// <param name="dto"><see cref="acts_filesDTO"/> to convert.</param>
        public static acts_files ToEntity(this acts_filesDTO dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new acts_files();

            entity.id_acts_files = dto.id_acts_files;
            entity.id_act        = dto.id_act;
            entity.id_file       = dto.id_file;

            dto.OnEntity(entity);

            return(entity);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="acts_files"/> converted from <see cref="acts_filesDTO"/>.</param>
 static partial void OnEntity(this acts_filesDTO dto, acts_files entity);
Exemplo n.º 4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="acts_filesDTO"/> converted from <see cref="acts_files"/>.</param>
 static partial void OnDTO(this acts_files entity, acts_filesDTO dto);