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

            var dto = new embarzoDto();

            dto.v_EmbarazoId             = entity.v_EmbarazoId;
            dto.v_PersonId               = entity.v_PersonId;
            dto.v_Anio                   = entity.v_Anio;
            dto.v_Cpn                    = entity.v_Cpn;
            dto.v_Complicacion           = entity.v_Complicacion;
            dto.v_Parto                  = entity.v_Parto;
            dto.v_PesoRn                 = entity.v_PesoRn;
            dto.v_Puerpio                = entity.v_Puerpio;
            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_ObservacionesGestacion = entity.v_ObservacionesGestacion;

            entity.OnDTO(dto);

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

            var entity = new embarzo();

            entity.v_EmbarazoId             = dto.v_EmbarazoId;
            entity.v_PersonId               = dto.v_PersonId;
            entity.v_Anio                   = dto.v_Anio;
            entity.v_Cpn                    = dto.v_Cpn;
            entity.v_Complicacion           = dto.v_Complicacion;
            entity.v_Parto                  = dto.v_Parto;
            entity.v_PesoRn                 = dto.v_PesoRn;
            entity.v_Puerpio                = dto.v_Puerpio;
            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_ObservacionesGestacion = dto.v_ObservacionesGestacion;

            dto.OnEntity(entity);

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