/// <summary>
        /// Converts this instance of <see cref="gerenciacreditoResult"/> to an instance of <see cref="gerenciacreditoResultDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="gerenciacreditoResult"/> to convert.</param>
        public static gerenciacreditoResultDto ToDTO(this gerenciacreditoResult entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new gerenciacreditoResultDto();

            dto.FechaServicio        = entity.FechaServicio;
            dto.ServiceId            = entity.ServiceId;
            dto.Trabajador           = entity.Trabajador;
            dto.Ocupacion            = entity.Ocupacion;
            dto.TipoEso              = entity.TipoEso;
            dto.CostoExamen          = entity.CostoExamen;
            dto.Compania             = entity.Compania;
            dto.Contratista          = entity.Contratista;
            dto.Trabajo              = entity.Trabajo;
            dto.EmpresaFacturacion   = entity.EmpresaFacturacion;
            dto.Comprobante          = entity.Comprobante;
            dto.NroLiquidacion       = entity.NroLiquidacion;
            dto.FechaFactura         = entity.FechaFactura;
            dto.ImporteTotalFactura  = entity.ImporteTotalFactura;
            dto.d_NetoXCobrarFactura = entity.d_NetoXCobrarFactura;
            dto.CondicionFactura     = entity.CondicionFactura;
            dto.xxx = entity.xxx;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="gerenciacreditoResultDto"/> to an instance of <see cref="gerenciacreditoResult"/>.
        /// </summary>
        /// <param name="dto"><see cref="gerenciacreditoResultDto"/> to convert.</param>
        public static gerenciacreditoResult ToEntity(this gerenciacreditoResultDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new gerenciacreditoResult();

            entity.FechaServicio        = dto.FechaServicio;
            entity.ServiceId            = dto.ServiceId;
            entity.Trabajador           = dto.Trabajador;
            entity.Ocupacion            = dto.Ocupacion;
            entity.TipoEso              = dto.TipoEso;
            entity.CostoExamen          = dto.CostoExamen;
            entity.Compania             = dto.Compania;
            entity.Contratista          = dto.Contratista;
            entity.Trabajo              = dto.Trabajo;
            entity.EmpresaFacturacion   = dto.EmpresaFacturacion;
            entity.Comprobante          = dto.Comprobante;
            entity.NroLiquidacion       = dto.NroLiquidacion;
            entity.FechaFactura         = dto.FechaFactura;
            entity.ImporteTotalFactura  = dto.ImporteTotalFactura;
            entity.d_NetoXCobrarFactura = dto.d_NetoXCobrarFactura;
            entity.CondicionFactura     = dto.CondicionFactura;
            entity.xxx = dto.xxx;

            dto.OnEntity(entity);

            return(entity);
        }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="gerenciacreditoResult"/> converted from <see cref="gerenciacreditoResultDto"/>.</param>
 static partial void OnEntity(this gerenciacreditoResultDto dto, gerenciacreditoResult entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="gerenciacreditoResultDto"/> converted from <see cref="gerenciacreditoResult"/>.</param>
 static partial void OnDTO(this gerenciacreditoResult entity, gerenciacreditoResultDto dto);