Example #1
0
        /// <summary>
        /// Converts this instance of <see cref="pacientmultimediadata"/> to an instance of <see cref="pacientmultimediadataDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="pacientmultimediadata"/> to convert.</param>
        public static pacientmultimediadataDto ToDTO(this pacientmultimediadata entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new pacientmultimediadataDto();

            dto.v_PacientMultimediaDataId = entity.v_PacientMultimediaDataId;
            dto.v_PersonId     = entity.v_PersonId;
            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);
        }
Example #2
0
        /// <summary>
        /// Converts this instance of <see cref="pacientmultimediadataDto"/> to an instance of <see cref="pacientmultimediadata"/>.
        /// </summary>
        /// <param name="dto"><see cref="pacientmultimediadataDto"/> to convert.</param>
        public static pacientmultimediadata ToEntity(this pacientmultimediadataDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new pacientmultimediadata();

            entity.v_PacientMultimediaDataId = dto.v_PacientMultimediaDataId;
            entity.v_PersonId     = dto.v_PersonId;
            entity.i_IsDeleted    = dto.i_IsDeleted;
            entity.i_InsertUserId = dto.i_InsertUserId;
            entity.d_InsertDate   = dto.d_InsertDate;
            entity.i_UpdateUserId = dto.i_UpdateUserId;
            entity.d_UpdateDate   = dto.d_UpdateDate;

            dto.OnEntity(entity);

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