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