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

            var entity = new GESTION_BASES();

            entity.IDGESTION = dto.IDGESTION;
            entity.GESTION = dto.GESTION;
            entity.SUBGESTION = dto.SUBGESTION;
            entity.CODI_GEST = dto.CODI_GEST;
            entity.ID_ABONADO = dto.ID_ABONADO;
            entity.FEC_TRAMITE = dto.FEC_TRAMITE;
            entity.FEC_BAJA = dto.FEC_BAJA;
            entity.LLAMADAS_DIA = dto.LLAMADAS_DIA;
            entity.LLAMADAS_ANT = dto.LLAMADAS_ANT;
            entity.LLAMADAS_TOTAL = dto.LLAMADAS_TOTAL;
            entity.CEF = dto.CEF;
            entity.CNE = dto.CNE;
            entity.NOC = dto.NOC;
            entity.TIPO = dto.TIPO;
            entity.VENTAS = dto.VENTAS;
            entity.ESTADO = dto.ESTADO;

            dto.OnEntity(entity);

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