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

            var dto = new historyDto();

            dto.v_HistoryId         = entity.v_HistoryId;
            dto.v_PersonId          = entity.v_PersonId;
            dto.d_StartDate         = entity.d_StartDate;
            dto.d_EndDate           = entity.d_EndDate;
            dto.v_Organization      = entity.v_Organization;
            dto.v_TypeActivity      = entity.v_TypeActivity;
            dto.i_GeografixcaHeight = entity.i_GeografixcaHeight;
            dto.v_workstation       = entity.v_workstation;
            dto.b_RubricImage       = entity.b_RubricImage;
            dto.b_FingerPrintImage  = entity.b_FingerPrintImage;
            dto.t_RubricImageText   = entity.t_RubricImageText;
            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;
            dto.i_TypeOperationId   = entity.i_TypeOperationId;

            entity.OnDTO(dto);

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

            var dto = new historyDto();

            dto.v_HistoryId         = entity.v_HistoryId;
            dto.v_PersonId          = entity.v_PersonId;
            dto.d_StartDate         = entity.d_StartDate;
            dto.d_EndDate           = entity.d_EndDate;
            dto.v_Organization      = entity.v_Organization;
            dto.v_TypeActivity      = entity.v_TypeActivity;
            dto.i_GeografixcaHeight = entity.i_GeografixcaHeight;
            dto.v_workstation       = entity.v_workstation;
            dto.b_RubricImage       = entity.b_RubricImage;
            dto.b_FingerPrintImage  = entity.b_FingerPrintImage;
            dto.t_RubricImageText   = entity.t_RubricImageText;
            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;
            dto.i_TypeOperationId   = entity.i_TypeOperationId;
            dto.i_TrabajoActual     = entity.i_TrabajoActual;
            dto.v_FechaUltimaMamo   = entity.v_FechaUltimaMamo;
            dto.v_FechaUltimoPAP    = entity.v_FechaUltimoPAP;
            dto.v_ResultadoMamo     = entity.v_ResultadoMamo;
            dto.v_ResultadosPAP     = entity.v_ResultadosPAP;
            dto.i_SoloAnio          = entity.i_SoloAnio;
            dto.v_ActividadEmpresa  = entity.v_ActividadEmpresa;
            dto.v_ComentaryUpdate   = entity.v_ComentaryUpdate;

            entity.OnDTO(dto);

            return(dto);
        }