/// <summary> /// Converts this instance of <see cref="gerenciatipopagoResult"/> to an instance of <see cref="gerenciatipopagoResultDto"/>. /// </summary> /// <param name="entity"><see cref="gerenciatipopagoResult"/> to convert.</param> public static gerenciatipopagoResultDto ToDTO(this gerenciatipopagoResult entity) { if (entity == null) { return(null); } var dto = new gerenciatipopagoResultDto(); dto.IdCondicionPago = entity.IdCondicionPago; dto.CondicionPago = entity.CondicionPago; dto.FechaFactura = entity.FechaFactura; dto.Comprobante = entity.Comprobante; dto.FechaFactura1 = entity.FechaFactura1; dto.Empresa = entity.Empresa; dto.v_NroDocIdentificacion = entity.v_NroDocIdentificacion; dto.Importe = entity.Importe; dto.ServiceId = entity.ServiceId; dto.Trabajador = entity.Trabajador; dto.FechaServicio = entity.FechaServicio; dto.Compania = entity.Compania; dto.Contratista = entity.Contratista; dto.CostoExamen = entity.CostoExamen; dto.TipoEso = entity.TipoEso; dto.Agrupador = entity.Agrupador; dto.UsuarioAgenda = entity.UsuarioAgenda; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="gerenciatipopagoResultDto"/> to an instance of <see cref="gerenciatipopagoResult"/>. /// </summary> /// <param name="dto"><see cref="gerenciatipopagoResultDto"/> to convert.</param> public static gerenciatipopagoResult ToEntity(this gerenciatipopagoResultDto dto) { if (dto == null) { return(null); } var entity = new gerenciatipopagoResult(); entity.IdCondicionPago = dto.IdCondicionPago; entity.CondicionPago = dto.CondicionPago; entity.FechaFactura = dto.FechaFactura; entity.Comprobante = dto.Comprobante; entity.FechaFactura1 = dto.FechaFactura1; entity.Empresa = dto.Empresa; entity.v_NroDocIdentificacion = dto.v_NroDocIdentificacion; entity.Importe = dto.Importe; entity.ServiceId = dto.ServiceId; entity.Trabajador = dto.Trabajador; entity.FechaServicio = dto.FechaServicio; entity.Compania = dto.Compania; entity.Contratista = dto.Contratista; entity.CostoExamen = dto.CostoExamen; entity.TipoEso = dto.TipoEso; entity.Agrupador = dto.Agrupador; entity.UsuarioAgenda = dto.UsuarioAgenda; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="gerenciatipopagoResult"/> converted from <see cref="gerenciatipopagoResultDto"/>.</param> static partial void OnEntity(this gerenciatipopagoResultDto dto, gerenciatipopagoResult entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="gerenciatipopagoResultDto"/> converted from <see cref="gerenciatipopagoResult"/>.</param> static partial void OnDTO(this gerenciatipopagoResult entity, gerenciatipopagoResultDto dto);