/// <summary> /// Converts this instance of <see cref="ticketdetalle"/> to an instance of <see cref="ticketdetalleDto"/>. /// </summary> /// <param name="entity"><see cref="ticketdetalle"/> to convert.</param> public static ticketdetalleDto ToDTO(this ticketdetalle entity) { if (entity == null) { return(null); } var dto = new ticketdetalleDto(); dto.v_TicketDetalleId = entity.v_TicketDetalleId; dto.v_TicketId = entity.v_TicketId; dto.v_Descripcion = entity.v_Descripcion; dto.v_IdProductoDetalle = entity.v_IdProductoDetalle; dto.v_CodInterno = entity.v_CodInterno; dto.d_Cantidad = entity.d_Cantidad; dto.d_PrecioVenta = entity.d_PrecioVenta; dto.d_SaldoPaciente = entity.d_SaldoPaciente; dto.d_SaldoAseguradora = entity.d_SaldoAseguradora; dto.i_EsDespachado = entity.i_EsDespachado; dto.v_IdUnidadProductiva = entity.v_IdUnidadProductiva; 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="ticketdetalleDto"/> to an instance of <see cref="ticketdetalle"/>. /// </summary> /// <param name="dto"><see cref="ticketdetalleDto"/> to convert.</param> public static ticketdetalle ToEntity(this ticketdetalleDto dto) { if (dto == null) { return(null); } var entity = new ticketdetalle(); entity.v_TicketDetalleId = dto.v_TicketDetalleId; entity.v_TicketId = dto.v_TicketId; entity.v_Descripcion = dto.v_Descripcion; entity.v_IdProductoDetalle = dto.v_IdProductoDetalle; entity.v_CodInterno = dto.v_CodInterno; entity.d_Cantidad = dto.d_Cantidad; entity.d_PrecioVenta = dto.d_PrecioVenta; entity.d_SaldoPaciente = dto.d_SaldoPaciente; entity.d_SaldoAseguradora = dto.d_SaldoAseguradora; entity.i_EsDespachado = dto.i_EsDespachado; entity.v_IdUnidadProductiva = dto.v_IdUnidadProductiva; 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="ticketdetalle"/> converted from <see cref="ticketdetalleDto"/>.</param> static partial void OnEntity(this ticketdetalleDto dto, ticketdetalle entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="ticketdetalleDto"/> converted from <see cref="ticketdetalle"/>.</param> static partial void OnDTO(this ticketdetalle entity, ticketdetalleDto dto);