Exemplo n.º 1
0
        /// <inheritdoc />
        public IEnumerable <IEntitySlim> GetAll(UmbracoObjectTypes objectType, Guid[] keys)
        {
            var entityType = objectType.GetClrType();

            GetObjectType(entityType);

            using (ScopeProvider.CreateScope(autoComplete: true))
            {
                return(_entityRepository.GetAll(objectType.GetGuid(), keys));
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        public virtual IEnumerable <TreeEntityPath> GetAllPaths(UmbracoObjectTypes objectType, params Guid[] keys)
        {
            var entityType = objectType.GetClrType();

            GetObjectType(entityType);

            using (ScopeProvider.CreateScope(autoComplete: true))
            {
                return(_entityRepository.GetAllPaths(objectType.GetGuid(), keys));
            }
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        public virtual IEnumerable <IEntitySlim> GetAll(UmbracoObjectTypes objectType, params int[] ids)
        {
            var entityType = objectType.GetClrType();

            if (entityType == null)
            {
                throw new NotSupportedException($"Type \"{objectType}\" is not supported here.");
            }

            GetObjectType(entityType);

            using (ScopeProvider.CreateScope(autoComplete: true))
            {
                return(_entityRepository.GetAll(objectType.GetGuid(), ids));
            }
        }