This commit is contained in:
2021-08-25 19:36:51 +00:00
parent a13bdc1a04
commit 936a0b863c
5 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ namespace AyaNova.Biz
var batch = idList.Take(IReportAbleObject.REPORT_DATA_BATCH_SIZE);
idList = idList.Skip(IReportAbleObject.REPORT_DATA_BATCH_SIZE).ToArray();
//query for this batch, comes back in db natural order unfortunately
var batchResults = await ct.VPartInventoryList.AsNoTracking().Where(z => batch.Contains(z.PartInventoryId)).ToArrayAsync();
var batchResults = await ct.ViewPartInventoryList.AsNoTracking().Where(z => batch.Contains(z.PartInventoryId)).ToArrayAsync();
//order the results back into original
var orderedList = from id in batch join z in batchResults on id equals z.PartInventoryId select z;
@@ -57,7 +57,7 @@ namespace AyaNova.Biz
// {
// ct.Database.OpenConnection();
foreach (VPartInventoryList w in orderedList)
foreach (ViewPartInventoryList w in orderedList)
{
//await PopulateVizFields(w, AyaTypesEnumList, command);
var jo = JObject.FromObject(w);