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

            var dto = new problemaDto();

            dto.v_ProblemaId      = entity.v_ProblemaId;
            dto.i_Tipo            = entity.i_Tipo;
            dto.v_PersonId        = entity.v_PersonId;
            dto.d_Fecha           = entity.d_Fecha;
            dto.v_Descripcion     = entity.v_Descripcion;
            dto.i_EsControlado    = entity.i_EsControlado;
            dto.v_Observacion     = entity.v_Observacion;
            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.v_ComentaryUpdate = entity.v_ComentaryUpdate;

            entity.OnDTO(dto);

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

            var entity = new problema();

            entity.v_ProblemaId      = dto.v_ProblemaId;
            entity.i_Tipo            = dto.i_Tipo;
            entity.v_PersonId        = dto.v_PersonId;
            entity.d_Fecha           = dto.d_Fecha;
            entity.v_Descripcion     = dto.v_Descripcion;
            entity.i_EsControlado    = dto.i_EsControlado;
            entity.v_Observacion     = dto.v_Observacion;
            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;
            entity.v_ComentaryUpdate = dto.v_ComentaryUpdate;

            dto.OnEntity(entity);

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