do some checkers and logs for found chunked issue ...
This commit is contained in:
@@ -520,10 +520,19 @@ namespace xWebinarService.Providers
|
||||
// Since in Resourceable Entities we have to Search on Locales
|
||||
// we Must Implement Senario Custom ...
|
||||
var totalEntities = await WebinarRepository.GetAllAsync();
|
||||
var itemsTasks = totalEntities.ToList().Select(e => ToXWebinarDto(e));
|
||||
var items = (await Task.WhenAll(itemsTasks)).AsEnumerable();
|
||||
// var items = await totalEntities.SelectAsync(async e => await ToXWebinarDto(e));
|
||||
Console.WriteLine($"Query Reading All ...");
|
||||
|
||||
//
|
||||
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();
|
||||
Console.WriteLine($"Query Reading Item's Tasks ...");
|
||||
|
||||
//
|
||||
// Apply Filter ...
|
||||
@@ -532,6 +541,9 @@ namespace xWebinarService.Providers
|
||||
//
|
||||
items = items
|
||||
.ApplyFilter(query.Filter);
|
||||
|
||||
//
|
||||
Console.WriteLine($"Query Apply Filter ...");
|
||||
}
|
||||
int filteredItemsCount = items.Count();
|
||||
|
||||
@@ -547,17 +559,25 @@ namespace xWebinarService.Providers
|
||||
{
|
||||
//
|
||||
// Apply Sorting ...
|
||||
items = items.ApplySorting(
|
||||
query.SortBy,
|
||||
query.IsAscending
|
||||
);
|
||||
items = items
|
||||
.ToList()
|
||||
.ApplySorting(
|
||||
query.SortBy,
|
||||
query.IsAscending
|
||||
);
|
||||
//
|
||||
Console.WriteLine($"Query Apply Sorting ...");
|
||||
|
||||
//
|
||||
// Apply Paging ...
|
||||
items = items.ApplyPaging(
|
||||
query.Page,
|
||||
query.PageSize
|
||||
);
|
||||
items = items
|
||||
.ToList()
|
||||
.ApplyPaging(
|
||||
query.Page,
|
||||
query.PageSize
|
||||
);
|
||||
//
|
||||
Console.WriteLine($"Query Apply Paging ...");
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user