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

            var dto = new UsuarioDTOS();

            dto.UsuarioId = entity.UsuarioId;
            dto.UserName = entity.UserName;
            dto.Nombre = entity.Nombre;
            dto.Apellido = entity.Apellido;
            dto.ContraseƱa = entity.ContraseƱa;
            dto.RolId = entity.RolId;
            dto.Eliminado = entity.Eliminado;
            dto.FechaSistema = entity.FechaSistema;

            entity.OnDTO(dto);

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