do some checkers and logs for found chunked issue ...

This commit is contained in:
2025-11-25 20:29:11 +03:30
parent ea33752dfa
commit a3496e601b
+31 -11
View File
@@ -520,10 +520,19 @@ namespace xWebinarService.Providers
// Since in Resourceable Entities we have to Search on Locales // Since in Resourceable Entities we have to Search on Locales
// we Must Implement Senario Custom ... // we Must Implement Senario Custom ...
var totalEntities = await WebinarRepository.GetAllAsync(); var totalEntities = await WebinarRepository.GetAllAsync();
var itemsTasks = totalEntities.ToList().Select(e => ToXWebinarDto(e)); Console.WriteLine($"Query Reading All ...");
var items = (await Task.WhenAll(itemsTasks)).AsEnumerable();
// var items = await totalEntities.SelectAsync(async e => await ToXWebinarDto(e)); //
var list = new List<XWebinarDto>();
foreach (var entity in totalEntities)
{
//
var dto = await ToXWebinarDto(entity);
list.Add(dto);
}
var items = list.AsEnumerable();
var totalItemsCount = items.Count(); var totalItemsCount = items.Count();
Console.WriteLine($"Query Reading Item's Tasks ...");
// //
// Apply Filter ... // Apply Filter ...
@@ -532,6 +541,9 @@ namespace xWebinarService.Providers
// //
items = items items = items
.ApplyFilter(query.Filter); .ApplyFilter(query.Filter);
//
Console.WriteLine($"Query Apply Filter ...");
} }
int filteredItemsCount = items.Count(); int filteredItemsCount = items.Count();
@@ -547,17 +559,25 @@ namespace xWebinarService.Providers
{ {
// //
// Apply Sorting ... // Apply Sorting ...
items = items.ApplySorting( items = items
query.SortBy, .ToList()
query.IsAscending .ApplySorting(
); query.SortBy,
query.IsAscending
);
//
Console.WriteLine($"Query Apply Sorting ...");
// //
// Apply Paging ... // Apply Paging ...
items = items.ApplyPaging( items = items
query.Page, .ToList()
query.PageSize .ApplyPaging(
); query.Page,
query.PageSize
);
//
Console.WriteLine($"Query Apply Paging ...");
} }
// //