/// <summary> /// Converts this instance of <see cref="historyDto"/> to an instance of <see cref="history"/>. /// </summary> /// <param name="dto"><see cref="historyDto"/> to convert.</param> public static history ToEntity(this historyDto dto) { if (dto == null) { return(null); } var entity = new history(); entity.v_HistoryId = dto.v_HistoryId; entity.v_PersonId = dto.v_PersonId; entity.d_StartDate = dto.d_StartDate; entity.d_EndDate = dto.d_EndDate; entity.v_Organization = dto.v_Organization; entity.v_TypeActivity = dto.v_TypeActivity; entity.i_GeografixcaHeight = dto.i_GeografixcaHeight; entity.v_workstation = dto.v_workstation; entity.b_RubricImage = dto.b_RubricImage; entity.b_FingerPrintImage = dto.b_FingerPrintImage; entity.t_RubricImageText = dto.t_RubricImageText; 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.i_TypeOperationId = dto.i_TypeOperationId; dto.OnEntity(entity); return(entity); }
/// <summary> /// Converts this instance of <see cref="historyDto"/> to an instance of <see cref="history"/>. /// </summary> /// <param name="dto"><see cref="historyDto"/> to convert.</param> public static history ToEntity(this historyDto dto) { if (dto == null) { return(null); } var entity = new history(); entity.v_HistoryId = dto.v_HistoryId; entity.v_PersonId = dto.v_PersonId; entity.d_StartDate = dto.d_StartDate; entity.d_EndDate = dto.d_EndDate; entity.v_Organization = dto.v_Organization; entity.v_TypeActivity = dto.v_TypeActivity; entity.i_GeografixcaHeight = dto.i_GeografixcaHeight; entity.v_workstation = dto.v_workstation; entity.b_RubricImage = dto.b_RubricImage; entity.b_FingerPrintImage = dto.b_FingerPrintImage; entity.t_RubricImageText = dto.t_RubricImageText; 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.i_TypeOperationId = dto.i_TypeOperationId; entity.i_TrabajoActual = dto.i_TrabajoActual; entity.v_FechaUltimaMamo = dto.v_FechaUltimaMamo; entity.v_FechaUltimoPAP = dto.v_FechaUltimoPAP; entity.v_ResultadoMamo = dto.v_ResultadoMamo; entity.v_ResultadosPAP = dto.v_ResultadosPAP; entity.i_SoloAnio = dto.i_SoloAnio; entity.v_ActividadEmpresa = dto.v_ActividadEmpresa; entity.v_ComentaryUpdate = dto.v_ComentaryUpdate; dto.OnEntity(entity); return(entity); }