/// <summary> /// Converts this instance of <see cref="familymedicalantecedents"/> to an instance of <see cref="familymedicalantecedentsDto"/>. /// </summary> /// <param name="entity"><see cref="familymedicalantecedents"/> to convert.</param> public static familymedicalantecedentsDto ToDTO(this familymedicalantecedents entity) { if (entity == null) { return(null); } var dto = new familymedicalantecedentsDto(); dto.v_FamilyMedicalAntecedentsId = entity.v_FamilyMedicalAntecedentsId; dto.v_PersonId = entity.v_PersonId; dto.v_DiseasesId = entity.v_DiseasesId; dto.i_TypeFamilyId = entity.i_TypeFamilyId; dto.v_Comment = entity.v_Comment; 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); }
/// <summary> /// Converts this instance of <see cref="familymedicalantecedentsDto"/> to an instance of <see cref="familymedicalantecedents"/>. /// </summary> /// <param name="dto"><see cref="familymedicalantecedentsDto"/> to convert.</param> public static familymedicalantecedents ToEntity(this familymedicalantecedentsDto dto) { if (dto == null) { return(null); } var entity = new familymedicalantecedents(); entity.v_FamilyMedicalAntecedentsId = dto.v_FamilyMedicalAntecedentsId; entity.v_PersonId = dto.v_PersonId; entity.v_DiseasesId = dto.v_DiseasesId; entity.i_TypeFamilyId = dto.i_TypeFamilyId; entity.v_Comment = dto.v_Comment; 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); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="familymedicalantecedents"/> converted from <see cref="familymedicalantecedentsDto"/>.</param> static partial void OnEntity(this familymedicalantecedentsDto dto, familymedicalantecedents entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="familymedicalantecedentsDto"/> converted from <see cref="familymedicalantecedents"/>.</param> static partial void OnDTO(this familymedicalantecedents entity, familymedicalantecedentsDto dto);