This commit is contained in:
@@ -103,10 +103,10 @@ namespace AyaNova.Biz
|
||||
//docs say this will not query twice but will recognize the duplicate woitem bit which is required for multiple grandchild collections
|
||||
var ret =
|
||||
await ct.WorkOrder
|
||||
.Include(w => w.WorkOrderItems)
|
||||
.ThenInclude(wi => wi.WorkOrderItemLabors)
|
||||
.Include(w => w.WorkOrderItems)
|
||||
.ThenInclude(wi => wi.WorkOrderItemParts)
|
||||
.Include(w => w.Items)
|
||||
.ThenInclude(wi => wi.Labors)
|
||||
.Include(w => w.Items)
|
||||
.ThenInclude(wi => wi.Parts)
|
||||
.SingleOrDefaultAsync(m => m.Id == id);
|
||||
if (logTheGetEvent && ret != null)
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||
@@ -312,8 +312,8 @@ namespace AyaNova.Biz
|
||||
//docs say this will not query twice but will recognize the duplicate woitem bit which is required for multiple grandchild collections
|
||||
var ret =
|
||||
await ct.WorkOrderItem
|
||||
.Include(wi => wi.WorkOrderItemLabors)
|
||||
.Include(wi => wi.WorkOrderItemParts)
|
||||
.Include(wi => wi.Labors)
|
||||
.Include(wi => wi.Parts)
|
||||
.SingleOrDefaultAsync(m => m.Id == id);
|
||||
if (logTheGetEvent && ret != null)
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, AyaType.WorkOrderItem, AyaEvent.Retrieved), ct);
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
|
||||
//dependents
|
||||
WorkOrderItems = new List<WorkOrderItem>();
|
||||
Items = new List<WorkOrderItem>();
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
@@ -49,7 +49,7 @@ namespace AyaNova.Models
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
//dependents
|
||||
public List<WorkOrderItem> WorkOrderItems { get; set; }
|
||||
public List<WorkOrderItem> Items { get; set; }
|
||||
|
||||
|
||||
// [NotMapped]
|
||||
|
||||
@@ -29,8 +29,8 @@ namespace AyaNova.Models
|
||||
{
|
||||
Tags = new List<string>();
|
||||
//dependents
|
||||
WorkOrderItemLabors = new List<WorkOrderItemLabor>();
|
||||
WorkOrderItemParts = new List<WorkOrderItemPart>();
|
||||
Labors = new List<WorkOrderItemLabor>();
|
||||
Parts = new List<WorkOrderItemPart>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
@@ -46,8 +46,8 @@ namespace AyaNova.Models
|
||||
public WorkOrder WorkOrder { get; set; }
|
||||
|
||||
//dependents
|
||||
public List<WorkOrderItemLabor> WorkOrderItemLabors { get; set; }
|
||||
public List<WorkOrderItemPart> WorkOrderItemParts { get; set; }
|
||||
public List<WorkOrderItemLabor> Labors { get; set; }
|
||||
public List<WorkOrderItemPart> Parts { get; set; }
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
|
||||
Reference in New Issue
Block a user