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