0
rwright-ruhealth created
- ABP Framework version: v7.3.2
- UI Type: / MVC / RAzor
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): tiered multi-solution mvc/razor
- Exception message and full stack trace:
- Steps to reproduce the issue:
Would like the search to search all items in the File Manager instead of searching only the selected tree. Your help is appreciated. using source code version of File Manager and ABP Suite commercial. Thank you.
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
1 Answer(s)
-
0
Hi,
Because you have the source code, you can modify the source code directly.
For exmaple, add a method to
IFileDescriptorRepositoryto get all items by filter:public virtual async Task<List<FileDescriptor>> GetAllListAsync( string filter = null, string sorting = null, int maxResultCount = int.MaxValue, int skipCount = 0, CancellationToken cancellationToken = default) { return await (await GetDbSetAsync()) .WhereIf(!string.IsNullOrWhiteSpace(filter), x => x.Name.Contains(filter)) .OrderBy(sorting.IsNullOrWhiteSpace() ? FileDescriptorConsts.DefaultSorting : sorting) .PageBy(skipCount, maxResultCount) .ToListAsync(GetCancellationToken(cancellationToken)); }And use it in the appservice.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)