/// <summary>
        /// Converts this instance of <see cref="servicecomponentmultimedia"/> to an instance of <see cref="servicecomponentmultimediaDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="servicecomponentmultimedia"/> to convert.</param>
        public static servicecomponentmultimediaDto ToDTO(this servicecomponentmultimedia entity)
        {
            if (entity == null) return null;

            var dto = new servicecomponentmultimediaDto();

            dto.v_ServiceComponentMultimediaId = entity.v_ServiceComponentMultimediaId;
            dto.v_ServiceComponentId = entity.v_ServiceComponentId;
            dto.v_MultimediaFileId = entity.v_MultimediaFileId;
            dto.v_Comment = entity.v_Comment;
            dto.i_IsDeleted = entity.i_IsDeleted;
            dto.i_InsertUserId = entity.i_InsertUserId;
            dto.d_InsertDate = entity.d_InsertDate;
            dto.i_UpdateUserId = entity.i_UpdateUserId;
            dto.d_UpdateDate = entity.d_UpdateDate;

            entity.OnDTO(dto);

            return dto;
        }