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
|
// 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
|
||||||
|
.ToList()
|
||||||
|
.ApplySorting(
|
||||||
query.SortBy,
|
query.SortBy,
|
||||||
query.IsAscending
|
query.IsAscending
|
||||||
);
|
);
|
||||||
|
//
|
||||||
|
Console.WriteLine($"Query Apply Sorting ...");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Apply Paging ...
|
// Apply Paging ...
|
||||||
items = items.ApplyPaging(
|
items = items
|
||||||
|
.ToList()
|
||||||
|
.ApplyPaging(
|
||||||
query.Page,
|
query.Page,
|
||||||
query.PageSize
|
query.PageSize
|
||||||
);
|
);
|
||||||
|
//
|
||||||
|
Console.WriteLine($"Query Apply Paging ...");
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user