/// <summary> /// Converts this instance of <see cref="antecedenteasistencial"/> to an instance of <see cref="antecedenteasistencialDto"/>. /// </summary> /// <param name="entity"><see cref="antecedenteasistencial"/> to convert.</param> public static antecedenteasistencialDto ToDTO(this antecedenteasistencial entity) { if (entity == null) { return(null); } var dto = new antecedenteasistencialDto(); dto.v_AntecendenteAsistencialId = entity.v_AntecendenteAsistencialId; dto.v_personId = entity.v_personId; dto.i_GrupoEtario = entity.i_GrupoEtario; dto.i_GrupoData = entity.i_GrupoData; dto.i_ParametroId = entity.i_ParametroId; dto.i_Valor = entity.i_Valor; dto.i_Quien = entity.i_Quien; 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); }
/// <summary> /// Converts this instance of <see cref="antecedenteasistencialDto"/> to an instance of <see cref="antecedenteasistencial"/>. /// </summary> /// <param name="dto"><see cref="antecedenteasistencialDto"/> to convert.</param> public static antecedenteasistencial ToEntity(this antecedenteasistencialDto dto) { if (dto == null) { return(null); } var entity = new antecedenteasistencial(); entity.v_AntecendenteAsistencialId = dto.v_AntecendenteAsistencialId; entity.v_personId = dto.v_personId; entity.i_GrupoEtario = dto.i_GrupoEtario; entity.i_GrupoData = dto.i_GrupoData; entity.i_ParametroId = dto.i_ParametroId; entity.i_Valor = dto.i_Valor; entity.i_Quien = dto.i_Quien; 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); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="antecedenteasistencial"/> converted from <see cref="antecedenteasistencialDto"/>.</param> static partial void OnEntity(this antecedenteasistencialDto dto, antecedenteasistencial entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="antecedenteasistencialDto"/> converted from <see cref="antecedenteasistencial"/>.</param> static partial void OnDTO(this antecedenteasistencial entity, antecedenteasistencialDto dto);